libraries/nx-libs: Compress manpages.

Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Andrew Clemons 2021-08-22 16:58:08 +12:00 committed by Willy Sudiarto Raharjo
parent 3cacb4a08f
commit 983d4d5fe6
No known key found for this signature in database
GPG key ID: 3F617144D7238786

View file

@ -103,6 +103,9 @@ chmod 0755 $PKG/usr/lib${LIBDIRSUFFIX}/lib*.so*
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
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
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild