Browse Source

l/python-entrypoints: Updated.

current-20191101
Damien Goutte-Gattat 2 years ago
parent
commit
295868730a
  1. 25
      l/python-entrypoints/python-entrypoints.SlackBuild

25
l/python-entrypoints/python-entrypoints.SlackBuild

@ -24,18 +24,15 @@
#
# Latest entrypoints sourcecode is available at:
# <https://github.com/takluyver/entrypoints>.
#
# Depends: l/python-backports
# Source package infos
NAMESRC=${NAMESRC:-entrypoints}
VERSION=${VERSION:-0.3}
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.gz}
WGET=${WGET:-https://files.pythonhosted.org/packages/b4/ef/063484f1f9ba3081e920ec9972c96664e2edb9fdc3d8669b0e3b8fc0ad7c/$ARCHIVE}
# Build infos
NAMEPKG=${NAMEPKG:-python-entrypoints}
BUILD=${BUILD:-2GGD}
BUILD=${BUILD:-3GGD}
ARCH=${ARCH:-$(uname -m | sed 's/^i.86$/i486/;s/^arm.*/arm/')}
JOBS=${JOBS:-1}
EXT=${EXT:-txz}
@ -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,21 +67,22 @@ cd $TMP
echo "Building $ARCHIVE..."
tar xf $CWD/$ARCHIVE
cd $NAME
python setup.py build
python 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 LICENSE PKG-INFO $PKG/usr/doc/$NAMEPKG-$VERSION
install -m 644 LICENSE README.rst $PKG/usr/doc/$NAMEPKG-$VERSION
# Build HTML docs if Sphinx is available
if type -p sphinx-build ; then
sphinx-build -b html doc $PKG/usr/doc/$NAMEPKG-$VERSION/html
rm -rf $PKG/usr/doc/$NAMEPKG-$VERSION/html/.{buildinfo,doctrees}
fi
# 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-backports
EOF
# Package the tree
cd $PKG
mkdir -p $OUT

Loading…
Cancel
Save