summaryrefslogtreecommitdiff
path: root/libraries/ulfius
diff options
context:
space:
mode:
authorAndrew Clemons <andrew.clemons@gmail.com>2021-08-22 20:12:39 +1200
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2021-08-25 12:11:34 +0700
commit5e972d94be68ad30bc03d1f4a2d0a21d2cbcb47d (patch)
tree648daa7ec634d9c9d753580d33943f229a34a6bc /libraries/ulfius
parent4888b6c2a012f539a702cb1d32d67f8671ae9a74 (diff)
downloadslackbuilds-5e972d94be68ad30bc03d1f4a2d0a21d2cbcb47d.tar.gz
libraries/ulfius: Compress manpages.
Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'libraries/ulfius')
-rw-r--r--libraries/ulfius/ulfius.SlackBuild6
1 files changed, 6 insertions, 0 deletions
diff --git a/libraries/ulfius/ulfius.SlackBuild b/libraries/ulfius/ulfius.SlackBuild
index 8d78d224e6..a92dbc6e64 100644
--- a/libraries/ulfius/ulfius.SlackBuild
+++ b/libraries/ulfius/ulfius.SlackBuild
@@ -91,6 +91,12 @@ cd ..
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
+mv $PKG/usr/share/man $PKG/usr
+rm -rf $PKG/usr/share
+
+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
DOCS="CHANGELOG.md LICENSE README.md"
cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION