Browse Source

l.python-aafigure: Updated.

current-20191101
Damien Goutte-Gattat 2 years ago
parent
commit
04b0331a3d
  1. 10
      l/python-aafigure/python-aafigure.SlackBuild

10
l/python-aafigure/python-aafigure.SlackBuild

@ -28,7 +28,6 @@
NAMESRC=${NAMESRC:-aafigure}
VERSION=${VERSION:-0.6}
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.gz}
WGET=${WGET:-https://files.pythonhosted.org/packages/f3/13/8516bd4dd1520c02797e4544bfac7a03521b28bb9404588197af2803ad89/$ARCHIVE}
# Build infos
NAMEPKG=${NAMEPKG:-python-aafigure}
@ -57,8 +56,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 @@ echo "Building $ARCHIVE..."
tar xf $CWD/$ARCHIVE
cd $NAME
patch -p1 < $CWD/aafigure-0.6-unicode.diff
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

Loading…
Cancel
Save