aboutsummaryrefslogtreecommitdiff
path: root/libraries/libfprint
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2022-04-23 00:21:26 -0400
committerB. Watson <yalhcru@gmail.com>2022-04-24 10:44:34 -0400
commit2257b557eeb44558fc4d593cfd905ab3e5c32587 (patch)
treee9241267522de1743f60576556e94f937b888724 /libraries/libfprint
parent26c9a1b5a1a8a8a954d3acf2f17687c996b543b8 (diff)
libraries/libfprint: Strip library; fix docs.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Diffstat (limited to 'libraries/libfprint')
-rw-r--r--libraries/libfprint/libfprint.SlackBuild18
1 files changed, 11 insertions, 7 deletions
diff --git a/libraries/libfprint/libfprint.SlackBuild b/libraries/libfprint/libfprint.SlackBuild
index b5460767f51f8..c1590efd586cf 100644
--- a/libraries/libfprint/libfprint.SlackBuild
+++ b/libraries/libfprint/libfprint.SlackBuild
@@ -4,11 +4,16 @@
# Written by Terry Laundos <terry.laundos@s1solucoes.com.br>
+# 20220423 bkw: Modified by SlackBuilds.org, BUILD=2:
+# - strip shared library.
+# - symlink html docs to doc dir.
+# - remove doc source from doc dir (it's used to generate the html).
+
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=libfprint
VERSION=${VERSION:-1.94.2}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -20,9 +25,6 @@ if [ -z "$ARCH" ]; then
esac
fi
-# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
-# the name of the created package would be, and then exit. This information
-# could be useful to other scripts.
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
exit 0
@@ -57,9 +59,9 @@ cd $PRGNAM-v$VERSION
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
- -o -perm 511 \) -exec chmod 755 {} \; -o \
+ -o -perm 511 \) -exec chmod 755 {} \+ -o \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
- -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \+
mkdir build
cd build
@@ -72,13 +74,15 @@ cd build
--localstatedir=/var \
--mandir=/usr/man \
--prefix=/usr \
+ -Dstrip=true \
--sysconfdir=/etc
DESTDIR=$PKG "${NINJA:=ninja}" install
cd ..
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a AUTHORS COPYING HACKING* NEWS README THANKS TODO doc/ \
+cp -a AUTHORS COPYING HACKING* NEWS README THANKS TODO \
examples/ $PKG/usr/doc/$PRGNAM-$VERSION
+ln -s ../../share/gtk-doc/html/$PRGNAM-2 $PKG/usr/doc/$PRGNAM-$VERSION/html
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install