aboutsummaryrefslogtreecommitdiff
path: root/python/stem/stem.SlackBuild
diff options
context:
space:
mode:
authorMarkus Reichelt <slackbuilds@mareichelt.de>2018-11-03 19:37:33 +0000
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2018-11-10 07:46:40 +0700
commit15698b3a49beb03ed7b31f417f699eef97ce5a71 (patch)
tree5ee40aefab46f27129312079b79da22fe8a8fbfd /python/stem/stem.SlackBuild
parent355da355e6667bd33b0e0364d2950f49b5a5f3f2 (diff)
python/stem: Updated for version 1.7.0.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'python/stem/stem.SlackBuild')
-rw-r--r--python/stem/stem.SlackBuild20
1 files changed, 5 insertions, 15 deletions
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 <slackbuilds@mareichelt.de>, 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