From 15698b3a49beb03ed7b31f417f699eef97ce5a71 Mon Sep 17 00:00:00 2001 From: Markus Reichelt Date: Sat, 3 Nov 2018 19:37:33 +0000 Subject: python/stem: Updated for version 1.7.0. Signed-off-by: David Spencer --- python/stem/stem.SlackBuild | 20 +++++--------------- 1 file changed, 5 insertions(+), 15 deletions(-) (limited to 'python/stem/stem.SlackBuild') diff --git a/python/stem/stem.SlackBuild b/python/stem/stem.SlackBuild index f5824bec433ba..8cb95b59d57bf 100644 --- a/python/stem/stem.SlackBuild +++ b/python/stem/stem.SlackBuild @@ -24,7 +24,7 @@ # Markus Reichelt , 0xCCEEF115 PRGNAM=stem -VERSION=${VERSION:-1.6.0} +VERSION=${VERSION:-1.7.0} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -72,6 +72,10 @@ find -L . \ python setup.py install --root=$PKG +if $(python3 -c 'import sys' 2>/dev/null); then + python3 setup.py install --root=$PKG +fi + cd $TMP/$PRGNAM-$VERSION find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ @@ -81,20 +85,6 @@ mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a docs/ LICENSE $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild -if [ "$DOC" = "yes" ]; then - mkdir -p $PKG/usr/man/man1 - cd $TMP/$PRGNAM-$VERSION/docs - make html - make man - cp -a _build/html $PKG/usr/doc/$PRGNAM-$VERSION - rm $PKG/usr/doc/$PRGNAM-$VERSION/html/{.buildinfo,objects.inv} - cp -a _build/man/* $PKG/usr/man/man1 - find $PKG/usr/man/man1 -type f -exec gzip -9 {} \; - for i in $( find $PKG/usr/man1 -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done - rm -rf $PKG/usr/doc/$PRGNAM-$VERSION/docs/* - rmdir $PKG/usr/doc/$PRGNAM-$VERSION/docs -fi; - mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc -- cgit v1.2.3