summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Clemons <andrew.clemons@gmail.com>2021-08-22 17:40:12 +1200
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2021-08-25 12:11:33 +0700
commit733946bd78a32cb3f840be830119de84ecf8cb9e (patch)
tree1da28283d03bdf4cfaa43a6fb4841a9eed2db6b5
parent0d391dcfcffd302ef468afea1ac865dda62a260c (diff)
downloadslackbuilds-733946bd78a32cb3f840be830119de84ecf8cb9e.tar.gz
libraries/orcania: Compress manpages.
Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r--libraries/orcania/orcania.SlackBuild5
1 files changed, 5 insertions, 0 deletions
diff --git a/libraries/orcania/orcania.SlackBuild b/libraries/orcania/orcania.SlackBuild
index 6caf33d6fd..1ac7242f6a 100644
--- a/libraries/orcania/orcania.SlackBuild
+++ b/libraries/orcania/orcania.SlackBuild
@@ -90,6 +90,11 @@ 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