Browse Source

l/pytz: Upgraded to pytz-2020.1.

current-20200608
parent
commit
28904d6983
  1. 1
      l/pytz/pytz-2019.3.tar.gz.sha256
  2. 1
      l/pytz/pytz-2020.1.tar.gz.sha256
  3. 12
      l/pytz/pytz.SlackBuild

1
l/pytz/pytz-2019.3.tar.gz.sha256

@ -1 +0,0 @@
b02c06db6cf09c12dd25137e563b31700d3b80fcc4ad23abb7a315f2789819be pytz-2019.3.tar.gz

1
l/pytz/pytz-2020.1.tar.gz.sha256

@ -0,0 +1 @@
c35965d010ce31b23eeb663ed3cc8c906275d6be1a34393a1d73a41febf4a048 pytz-2020.1.tar.gz

12
l/pytz/pytz.SlackBuild

@ -1,6 +1,6 @@
#!/bin/bash
# Build script for Slackware
# Copyright (C) 2015,2016,2018,2019 Damien Goutte-Gattat
# Copyright (C) 2015,2016,2018,2019,2020 Damien Goutte-Gattat
#
# Redistribution and use of this script, with or without modifications,
# is permitted provided that the following conditions are met:
@ -27,9 +27,8 @@
# Source package infos
NAMESRC=${NAMESRC:-pytz}
VERSION=${VERSION:-2019.3}
VERSION=${VERSION:-2020.1}
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.gz}
WGET=${WGET:-https://files.pythonhosted.org/packages/82/c3/534ddba230bd4fbbd3b7a3d35f3341d014cca213f369a9940925e7e5f691/$ARCHIVE}
# Build infos
NAMEPKG=${NAMEPKG:-pytz}
@ -58,8 +57,7 @@ fi
# Get and verify the source archive
if [ ! -r $ARCHIVE ]; then
wget -c -O $ARCHIVE.part "$WGET"
mv $ARCHIVE.part $ARCHIVE
pip3 download --no-binary :all: --no-deps $NAMESRC==$VERSION
fi
sha256sum -c $ARCHIVE.sha256
NAME=$NAMESRC-$VERSION
@ -69,14 +67,12 @@ cd $TMP
echo "Building $ARCHIVE..."
tar xf $CWD/$ARCHIVE
cd $NAME
python2 setup.py build
python2 setup.py install --root=$PKG
python3 setup.py build
python3 setup.py install --root=$PKG
# Install the documentation
mkdir -p $PKG/usr/doc/$NAME
install -m 644 LICENSE.txt PKG-INFO README.txt $PKG/usr/doc/$NAME
install -m 644 LICENSE.txt PKG-INFO README.rst $PKG/usr/doc/$NAME
# Copy slack-desc file
install -D -m 644 $CWD/slack-desc $PKG/install/slack-desc

Loading…
Cancel
Save