aboutsummaryrefslogtreecommitdiff
path: root/libraries/serd/serd.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/serd/serd.SlackBuild')
-rw-r--r--libraries/serd/serd.SlackBuild7
1 files changed, 6 insertions, 1 deletions
diff --git a/libraries/serd/serd.SlackBuild b/libraries/serd/serd.SlackBuild
index cb906c29cd611..5a8066f13b080 100644
--- a/libraries/serd/serd.SlackBuild
+++ b/libraries/serd/serd.SlackBuild
@@ -65,6 +65,8 @@ else
LIBDIRSUFFIX=""
fi
+doc="-Ddocs=disabled" ; [ "${DOCS:-no}" != "no" ] && doc="-Ddocs=enabled"
+
set -e
rm -rf $PKG
@@ -80,6 +82,8 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+sed -i doc/meson.build -e "s|^docdir.*|docdir = '/usr/doc/$PRGNAM-$VERSION'|"
+
mkdir build
cd build
CFLAGS="$SLKCFLAGS" \
@@ -92,6 +96,7 @@ cd build
--mandir=/usr/man \
--prefix=/usr \
--sysconfdir=/etc \
+ $doc \
-Dstrip=true
"${NINJA:=ninja}"
DESTDIR=$PKG $NINJA install
@@ -100,7 +105,7 @@ 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
-find $PKG/usr/man -type f -exec gzip -9 {} \;
+[ "${DOCS:-no}" != "no" ] && find $PKG/usr/man -type f -exec gzip -9 {} \;
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a AUTHORS COPYING NEWS README* \