summaryrefslogtreecommitdiffstats
path: root/graphics/birdfont/birdfont.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/birdfont/birdfont.SlackBuild')
-rw-r--r--graphics/birdfont/birdfont.SlackBuild16
1 files changed, 11 insertions, 5 deletions
diff --git a/graphics/birdfont/birdfont.SlackBuild b/graphics/birdfont/birdfont.SlackBuild
index fae2e6c005..5346149641 100644
--- a/graphics/birdfont/birdfont.SlackBuild
+++ b/graphics/birdfont/birdfont.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for birdfont
-# Copyright 2020-2022 Giancarlo Dessì, Cagliari, IT
+# Copyright 2020-2023 Giancarlo Dessi, Cagliari, IT
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -25,7 +25,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=birdfont
-VERSION=${VERSION:-2.32.0}
+VERSION=${VERSION:-2.33.3}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -43,7 +43,7 @@ if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
exit 0
fi
-TMP=${TMP:-/tmp/SBo}
+TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
@@ -69,6 +69,7 @@ cd $TMP
rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.xz
cd $PRGNAM-$VERSION
+
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
@@ -76,14 +77,19 @@ 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 {} \;
-./configure --prefix=$PKG/usr
+./configure --prefix=/usr --cflags="$SLKCFLAGS"
./build.py
-./install.py
+./install.py --dest "$PKG" --libdir /lib$LIBDIRSUFFIX --manpages-directory /man/man1
rm -f $PKG/{,usr/}lib${LIBDIRSUFFIX}/*.la
+chmod 755 $PKG/usr/lib$LIBDIRSUFFIX/*.so.*.*
+
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 {} \;
+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 AUTHORS NEWS README.md GPLv3.txt LGPLv3.txt TRANSLATORS $PKG/usr/doc/$PRGNAM-$VERSION