Browse Source

l/pytz: Upgraded to pytz-2017.3.

slackware-14.2
Damien Goutte-Gattat 3 years ago
parent
commit
4515d939e6
  1. 1
      l/pytz/pytz-2016.4.tar.gz.sha1
  2. 1
      l/pytz/pytz-2017.3.zip.sha256
  3. 16
      l/pytz/pytz.SlackBuild

1
l/pytz/pytz-2016.4.tar.gz.sha1

@ -1 +0,0 @@
2b7a40c87e5ba450593cf2f92f841a077f1f1382 pytz-2016.4.tar.gz

1
l/pytz/pytz-2017.3.zip.sha256

@ -0,0 +1 @@
fae4cffc040921b8a2d60c6cf0b5d662c1190fe54d718271db4eb17d44a185b7 pytz-2017.3.zip

16
l/pytz/pytz.SlackBuild

@ -1,6 +1,6 @@
#!/bin/bash
# Build script for Slackware
# Copyright (C) 2015,2016 Damien Goutte-Gattat
# Copyright (C) 2015,2016,2018 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,9 @@
# Source package infos
NAMESRC=${NAMESRC:-pytz}
VERSION=${VERSION:-2016.4}
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.gz}
WGET=${WGET:-https://pypi.python.org/packages/ad/30/5ab2298c902ac92fdf649cc07d1b7d491a241c5cac8be84dd84464db7d8b/$ARCHIVE}
VERSION=${VERSION:-2017.3}
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.zip}
WGET=${WGET:-https://pypi.python.org/packages/60/88/d3152c234da4b2a1f7a989f89609ea488225eaea015bc16fbde2b3fdfefa/$ARCHIVE}
# Build infos
NAMEPKG=${NAMEPKG:-pytz}
@ -61,20 +61,20 @@ if [ ! -r $ARCHIVE ]; then
wget -c -O $ARCHIVE.part "$WGET"
mv $ARCHIVE.part $ARCHIVE
fi
sha1sum -c $ARCHIVE.sha1
NAME=$(tar ft $ARCHIVE | head -n 1 | cut -d / -f 1)
sha256sum -c $ARCHIVE.sha256
NAME=$NAMESRC-$VERSION
# Compile
cd $TMP
echo "Building $ARCHIVE..."
tar xf $CWD/$ARCHIVE
unzip $CWD/$ARCHIVE
cd $NAME
python setup.py build
python setup.py install --root=$PKG
# Install the documentation
mkdir -p $PKG/usr/doc/$NAME
install -m 644 CHANGES.txt LICENSE.txt PKG-INFO README.txt $PKG/usr/doc/$NAME
install -m 644 LICENSE.txt PKG-INFO README.txt $PKG/usr/doc/$NAME
# Copy slack-desc file
install -D -m 644 $CWD/slack-desc $PKG/install/slack-desc

Loading…
Cancel
Save