Browse Source

l/python-parsedatetime: Upgraded to python-parsedatetime-2.6.

slackware-15.0
parent
commit
4790845636
  1. 1
      l/python-parsedatetime/parsedatetime-2.4.tar.gz.sha256
  2. 1
      l/python-parsedatetime/parsedatetime-2.6.tar.gz.sha256
  3. 19
      l/python-parsedatetime/python-parsedatetime.SlackBuild

1
l/python-parsedatetime/parsedatetime-2.4.tar.gz.sha256

@ -1 +0,0 @@
3d817c58fb9570d1eec1dd46fa9448cd644eeed4fb612684b02dfda3a79cb84b parsedatetime-2.4.tar.gz

1
l/python-parsedatetime/parsedatetime-2.6.tar.gz.sha256

@ -0,0 +1 @@
4cb368fbb18a0b7231f4d76119165451c8d2e35951455dfee97c62a87b04d455 parsedatetime-2.6.tar.gz

19
l/python-parsedatetime/python-parsedatetime.SlackBuild

@ -1,6 +1,6 @@
#!/bin/bash
# Build script for Slackware
# Copyright (C) 2018,2019 Damien Goutte-Gattat
# Copyright (C) 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:
@ -24,14 +24,11 @@
#
# Latest parsedatetime sourcecode is available at:
# <https://github.com/bear/parsedatetime>.
#
# Depends: l/python-future
# Source package infos
NAMESRC=${NAMESRC:-parsedatetime}
VERSION=${VERSION:-2.4}
VERSION=${VERSION:-2.6}
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.gz}
WGET=${WGET:-https://pypi.python.org/packages/e3/b3/02385db13f1f25f04ad7895f35e9fe3960a4b9d53112775a6f7d63f264b6/$ARCHIVE}
# Build infos
NAMEPKG=${NAMEPKG:-python-parsedatetime}
@ -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,24 +67,17 @@ 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/$NAMEPKG-$VERSION
install -m 644 AUTHORS.txt CHANGES.txt LICENSE.txt PKG-INFO README.rst \
install -m 644 AUTHORS.txt CHANGES.txt LICENSE.txt README.rst \
$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-future
EOF
# Package the tree
cd $PKG
mkdir -p $OUT

Loading…
Cancel
Save