summaryrefslogtreecommitdiffstats
path: root/graphics/psftools/psftools.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/psftools/psftools.SlackBuild')
-rw-r--r--graphics/psftools/psftools.SlackBuild29
1 files changed, 21 insertions, 8 deletions
diff --git a/graphics/psftools/psftools.SlackBuild b/graphics/psftools/psftools.SlackBuild
index baec0d652c..1167b8bbe4 100644
--- a/graphics/psftools/psftools.SlackBuild
+++ b/graphics/psftools/psftools.SlackBuild
@@ -6,17 +6,21 @@
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
+# 20210219 bkw: updated for v1.1.1
+# 20201208 bkw: updated for v1.0.14
+# 20191129 bkw: updated for v1.0.13
+
# 20180112 bkw:
# - BUILD=2
# - install the fonts that ship with the source, for use with the console.
# 20170712 bkw:
-# - updated for v1.1.0
+# - updated for v1.0.10
# - expand the README since it was a bit too terse
PRGNAM=psftools
-VERSION=${VERSION:-1.0.10}
-BUILD=${BUILD:-2}
+VERSION=${VERSION:-1.1.1}
+BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -55,11 +59,8 @@ rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$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 \
- \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
- -exec chmod 644 {} \;
+find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \
+ \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+
# --docdir not supported
CFLAGS="$SLKCFLAGS" \
@@ -118,5 +119,17 @@ cat $CWD/slack-desc > $PKG/install/slack-desc
# X fonts would need this:
## cat $CWD/doinst.sh > $PKG/install/doinst.sh
+# Contents of doinst.sh would be:
+## # Update the X font indexes:
+## if [ -x /usr/bin/mkfontdir -a -x /usr/bin/mkfontscale ]; then
+## ( cd usr/share/fonts/misc
+## /usr/bin/mkfontscale .
+## /usr/bin/mkfontdir .
+## )
+## fi
+## if [ -x /usr/bin/fc-cache ]; then
+## /usr/bin/fc-cache -f
+## fi
+
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}