summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIsaac Yu <isaacyu1@isaacyu1.com>2020-11-14 07:57:13 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2020-11-14 07:57:13 +0700
commit642f64fb484e0be99e7046355e2e29636e0901d1 (patch)
tree4b9d7a490e1f04396c5244a51835793067563612
parent9ed4badcc27a2b581cc9834f9ea73d0ccfc642a5 (diff)
downloadslackbuilds-642f64fb484e0be99e7046355e2e29636e0901d1.tar.gz
libraries/libxkbcommon: Compress man pages.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r--libraries/libxkbcommon/libxkbcommon.SlackBuild6
1 files changed, 5 insertions, 1 deletions
diff --git a/libraries/libxkbcommon/libxkbcommon.SlackBuild b/libraries/libxkbcommon/libxkbcommon.SlackBuild
index 54d84a1a2d..23798c20fc 100644
--- a/libraries/libxkbcommon/libxkbcommon.SlackBuild
+++ b/libraries/libxkbcommon/libxkbcommon.SlackBuild
@@ -25,7 +25,7 @@
PRGNAM=libxkbcommon
VERSION=${VERSION:-1.0.1}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -82,6 +82,10 @@ meson --prefix /usr --mandir /usr/man --libdir lib${LIBDIRSUFFIX} -Denable-wayla
DESTDIR=$PKG ninja -C build all install
+# Compress man files
+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 LICENSE README.md NEWS PACKAGING doc/* $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild