Browse Source

l/python-isodate: Updated.

current-20191101
Damien Goutte-Gattat 2 years ago
parent
commit
dc617ae8b5
  1. 17
      l/python-isodate/python-isodate.SlackBuild

17
l/python-isodate/python-isodate.SlackBuild

@ -24,14 +24,11 @@
#
# Latest isodate sourcecode is available at:
# <https://github.com/gweis/isodate/>.
#
# Depends: l/python-six
# Source package infos
NAMESRC=${NAMESRC:-isodate}
VERSION=${VERSION:-0.6.0}
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.gz}
WGET=${WGET:-https://files.pythonhosted.org/packages/b1/80/fb8c13a4cd38eb5021dc3741a9e588e4d1de88d895c1910c6fc8a08b7a70/$ARCHIVE}
# Build infos
NAMEPKG=${NAMEPKG:-python-isodate}
@ -60,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=$(tar ft $ARCHIVE | head -n 1 | cut -d / -f 1)
@ -71,8 +67,10 @@ cd $TMP
echo "Building $ARCHIVE..."
tar xf $CWD/$ARCHIVE
cd $NAME
python setup.py build
python setup.py install --root=$PKG
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/$NAMEPKG-$VERSION
@ -81,11 +79,6 @@ install -m 644 CHANGES.txt README.rst TODO.txt $PKG/usr/doc/$NAMEPKG-$VERSION
# 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