diff options
Diffstat (limited to 'graphics/pygraphviz/pygraphviz.SlackBuild')
-rw-r--r-- | graphics/pygraphviz/pygraphviz.SlackBuild | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/graphics/pygraphviz/pygraphviz.SlackBuild b/graphics/pygraphviz/pygraphviz.SlackBuild index e5e9504543bb4..f83a68ace049c 100644 --- a/graphics/pygraphviz/pygraphviz.SlackBuild +++ b/graphics/pygraphviz/pygraphviz.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for pygraphviz -# Copyright 2014 Dimitris Zlatanidis Greece-Orestiada +# Copyright 2014-2015 Dimitris Zlatanidis Orestiada, Greece # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -23,7 +23,7 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=pygraphviz -VERSION=${VERSION:-1.3rc2} +VERSION=${VERSION:-1.3.1} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -69,20 +69,20 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; +# fix doc path +sed -i "s/share\/doc/doc/" setup.py + python setup.py install --root=$PKG 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 -mv $PKG/usr/share/doc/$PRGNAM-$VERSION/examples/ $PKG/usr/doc/$PRGNAM-$VERSION -cp -a INSTALL.txt PKG-INFO README.txt doc/source/*.rst $PKG/usr/doc/$PRGNAM-$VERSION +cp -a INSTALL.txt PKG-INFO README.rst doc/source/*.rst $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild -rm -rf $PKG/usr/share mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cd $PKG /sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} - |