diff options
-rw-r--r-- | development/gitstats/gitstats.SlackBuild | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/development/gitstats/gitstats.SlackBuild b/development/gitstats/gitstats.SlackBuild index 529f1fcc62..72be657fae 100644 --- a/development/gitstats/gitstats.SlackBuild +++ b/development/gitstats/gitstats.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for gitstats -# Copyright 2016 Willy Sudiarto Raharjo <willysr@slackbuilds.org> +# Copyright 2016-2017 Willy Sudiarto Raharjo <willysr@slackbuilds.org> # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -24,7 +24,7 @@ PRGNAM=gitstats VERSION=${VERSION:-20160102} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -78,6 +78,12 @@ sed -i "s|VERSION = 0|VERSION = $VERSION|" $PKG/usr/bin/$PRGNAM 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/man/man1/ +pod2man doc/gitstats.pod $PKG/usr/man/man1/gitstats.1 + +find $PKG/usr/man -type f -exec gzip -9 {} \; +for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done + mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a doc/* $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild |