diff options
Diffstat (limited to 'python/stem/stem.SlackBuild')
-rw-r--r-- | python/stem/stem.SlackBuild | 27 |
1 files changed, 21 insertions, 6 deletions
diff --git a/python/stem/stem.SlackBuild b/python/stem/stem.SlackBuild index cf667c9c297f0..20fa1ffda331b 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.0.1} +VERSION=${VERSION:-1.1.1} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -65,20 +65,35 @@ tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2 cd $PRGNAM-$VERSION chown -R root:root . find -L . \ - \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \ - -exec chmod 755 {} \; -o \ - \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ - -exec chmod 644 {} \; + \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ + -o -perm 511 \) -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; python setup.py install --root=$PKG +cd $TMP/$PRGNAM-$VERSION + find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true -mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION $PKG/usr/man1 cp -a docs/ LICENSE $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild +if [ "$DOC" = "yes" ]; then + 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/man1 + find $PKG/usr/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 |