diff options
Diffstat (limited to 'graphics/psftools/psftools.SlackBuild')
-rw-r--r-- | graphics/psftools/psftools.SlackBuild | 27 |
1 files changed, 17 insertions, 10 deletions
diff --git a/graphics/psftools/psftools.SlackBuild b/graphics/psftools/psftools.SlackBuild index 1282dff0d1..7e158fc510 100644 --- a/graphics/psftools/psftools.SlackBuild +++ b/graphics/psftools/psftools.SlackBuild @@ -1,11 +1,13 @@ -#!/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: @@ -16,10 +18,13 @@ # - 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.13} +VERSION=${VERSION:-1.1.1} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -29,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} @@ -57,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" \ @@ -78,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 @@ -133,4 +140,4 @@ cat $CWD/slack-desc > $PKG/install/slack-desc ## 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 |