l/python-dateutil: Upgraded to python-dateutil-2.5.3.

This commit is contained in:
Damien Goutte-Gattat 2017-05-29 11:41:42 +02:00
parent 1dbf4f517e
commit d0cf2ee6b2
3 changed files with 14 additions and 7 deletions

View File

@ -1 +0,0 @@
28dec6c6361dd12805dc8e8887cd7da7e3348f39 python-dateutil-1.5.tar.gz

View File

@ -0,0 +1 @@
1408fdb07c6a1fa9997567ce3fcee6a337b39a503d80699e0f213de4aa4b32ed python-dateutil-2.5.3.tar.gz

View File

@ -1,6 +1,6 @@
#!/bin/bash
# Build script for Slackware
# Copyright (C) 2012,2016 Damien Goutte-Gattat
# Copyright (C) 2012,2016,2017 Damien Goutte-Gattat
#
# Redistribution and use of this script, with or without modifications,
# is permitted provided that the following conditions are met:
@ -23,13 +23,15 @@
# Contact: Damien Goutte-Gattat <dgouttegattat@incenp.org>
#
# Latest python-dateutil sourcecode is available at:
# <http://labix.org/python-dateutil>.
# <https://dateutil.readthedocs.io/>.
#
# Depends: l/python-six
# Source package infos
NAMESRC=${NAMESRC:-python-dateutil}
VERSION=${VERSION:-1.5}
VERSION=${VERSION:-2.5.3}
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.gz}
WGET=${WGET:-http://labix.org/download/python-dateutil/$ARCHIVE}
WGET=${WGET:-https://pypi.python.org/packages/3e/f5/aad82824b369332a676a90a8c0d1e608b17e740bbb6aeeebca726f17b902/$ARCHIVE}
# Build infos
NAMEPKG=${NAMEPKG:-python-dateutil}
@ -61,7 +63,7 @@ if [ ! -r $ARCHIVE ]; then
wget -c -O $ARCHIVE.part "$WGET"
mv $ARCHIVE.part $ARCHIVE
fi
sha1sum -c $ARCHIVE.sha1
sha256sum -c $ARCHIVE.sha256
NAME=$(tar ft $ARCHIVE | head -n 1 | cut -d / -f 1)
# Compile
@ -74,11 +76,16 @@ python setup.py install --root=$PKG
# Install the documentation
mkdir -p $PKG/usr/doc/$NAME
install -m 644 LICENSE NEWS README $PKG/usr/doc/$NAME
install -m 644 LICENSE NEWS README.rst $PKG/usr/doc/$NAME
# Copy slack-desc file
install -D -m 644 $CWD/slack-desc $PKG/install/slack-desc
# Add dependency infos
cat <<EOF > $PKG/install/slack-required
python-six
EOF
# Package the tree
cd $PKG
mkdir -p $OUT