From 642f64fb484e0be99e7046355e2e29636e0901d1 Mon Sep 17 00:00:00 2001 From: Isaac Yu Date: Sat, 14 Nov 2020 07:57:13 +0700 Subject: [PATCH] libraries/libxkbcommon: Compress man pages. Signed-off-by: Willy Sudiarto Raharjo --- libraries/libxkbcommon/libxkbcommon.SlackBuild | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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