summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xpodofo/build/podofo.SlackBuild6
1 files changed, 6 insertions, 0 deletions
diff --git a/podofo/build/podofo.SlackBuild b/podofo/build/podofo.SlackBuild
index c83a6162..83766eb2 100755
--- a/podofo/build/podofo.SlackBuild
+++ b/podofo/build/podofo.SlackBuild
@@ -172,6 +172,12 @@ cat $SRCDIR/$(basename $0) > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
chown -R root:root $PKG/usr/doc/$PRGNAM-$VERSION
find $PKG/usr/doc -type f -exec chmod 644 {} \;
+# Compress the man page(s):
+if [ -d $PKG/usr/man ]; then
+ find $PKG/usr/man -type f -name "*.?" -exec gzip -9f {} \;
+ for i in $(find $PKG/usr/man -type l -name "*.?") ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
+fi
+
# Strip binaries (if any):
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true