summaryrefslogtreecommitdiffstats
path: root/graphics/psftools
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/psftools')
-rw-r--r--graphics/psftools/README7
-rw-r--r--graphics/psftools/psftools.SlackBuild45
-rw-r--r--graphics/psftools/psftools.info10
3 files changed, 42 insertions, 20 deletions
diff --git a/graphics/psftools/README b/graphics/psftools/README
index c800979abc..3bfbd42795 100644
--- a/graphics/psftools/README
+++ b/graphics/psftools/README
@@ -15,9 +15,10 @@ font formats:
- Hercules WriteOn
- Raw bitmaps
-...and can also convert fonts to XBM, PBM, C source, and human-readable
-text files. psftools can also merge font files together, and transform
-them in various ways (scaling, flipping, adjusting the bounding box, etc).
+...and can also convert fonts to XBM, PBM, C source, and human
+readable text files. psftools can also merge font files together,
+and transform them in various ways (scaling, flipping, adjusting the
+bounding box, etc).
The package also includes few console fonts, taken from the open source
release of the GEM operating system.
diff --git a/graphics/psftools/psftools.SlackBuild b/graphics/psftools/psftools.SlackBuild
index baec0d652c..7e158fc510 100644
--- a/graphics/psftools/psftools.SlackBuild
+++ b/graphics/psftools/psftools.SlackBuild
@@ -1,23 +1,30 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for psftools
-# Written by B. Watson (yalhcru@gmail.com)
+# Written by B. Watson (urchlay@slackware.uk)
# 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
+cd $(dirname $0) ; CWD=$(pwd)
+
PRGNAM=psftools
-VERSION=${VERSION:-1.0.10}
-BUILD=${BUILD:-2}
+VERSION=${VERSION:-1.1.1}
+BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -27,7 +34,11 @@ if [ -z "$ARCH" ]; then
esac
fi
-CWD=$(pwd)
+if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
+ echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
+ exit 0
+fi
+
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
@@ -55,11 +66,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" \
@@ -76,6 +84,7 @@ CXXFLAGS="$SLKCFLAGS" \
make
make install-strip DESTDIR=$PKG
+rm -f $PKG/usr/lib$LIBDIRSUFFIX/*.la
# 20180112 bkw: install the example fonts that ship with the source.
psfdir=$PKG/usr/share/kbd/consolefonts
@@ -118,5 +127,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}
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE
diff --git a/graphics/psftools/psftools.info b/graphics/psftools/psftools.info
index c2e52451be..ee16536631 100644
--- a/graphics/psftools/psftools.info
+++ b/graphics/psftools/psftools.info
@@ -1,10 +1,10 @@
PRGNAM="psftools"
-VERSION="1.0.10"
-HOMEPAGE="http://www.seasip.info/Unix/PSF/index.html"
-DOWNLOAD="http://www.seasip.info/Unix/PSF/psftools-1.0.10.tar.gz"
-MD5SUM="c0037435aa44619be9c6c6dc8c4bccc1"
+VERSION="1.1.1"
+HOMEPAGE="https://www.seasip.info/Unix/PSF/index.html"
+DOWNLOAD="https://www.seasip.info/Unix/PSF/psftools-1.1.1.tar.gz"
+MD5SUM="fb29d0adae0384e70aa20e94998dd9e6"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""
MAINTAINER="B. Watson"
-EMAIL="yalhcru@gmail.com"
+EMAIL="urchlay@slackware.uk"