Browse Source

l/python-iso639: Updated.

current-20191101
Damien Goutte-Gattat 2 years ago
parent
commit
2de05357f1
  1. 10
      l/python-iso639/python-iso639.SlackBuild

10
l/python-iso639/python-iso639.SlackBuild

@ -29,7 +29,6 @@
NAMESRC=${NAMESRC:-iso-639}
VERSION=${VERSION:-0.4.5}
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.gz}
WGET=${WGET:-https://files.pythonhosted.org/packages/5a/8d/27969852f4e664525c3d070e44b2b719bc195f4d18c311c52e57bb93614e/$ARCHIVE}
# Build infos
NAMEPKG=${NAMEPKG:-python-iso639}
@ -58,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)
@ -69,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
install -D -m 644 README.rst $PKG/usr/doc/$NAMEPKG-$VERSION/README.rst

Loading…
Cancel
Save