Browse Source

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

slackware-14.2
Damien Goutte-Gattat 4 years ago
parent
commit
d0cf2ee6b2
  1. 1
      l/python-dateutil/python-dateutil-1.5.tar.gz.sha1
  2. 1
      l/python-dateutil/python-dateutil-2.5.3.tar.gz.sha256
  3. 19
      l/python-dateutil/python-dateutil.SlackBuild

1
l/python-dateutil/python-dateutil-1.5.tar.gz.sha1

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

1
l/python-dateutil/python-dateutil-2.5.3.tar.gz.sha256

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

19
l/python-dateutil/python-dateutil.SlackBuild

@ -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

Loading…
Cancel
Save