diff options
Diffstat (limited to 'graphics/psftools/psftools.SlackBuild')
-rw-r--r-- | graphics/psftools/psftools.SlackBuild | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/graphics/psftools/psftools.SlackBuild b/graphics/psftools/psftools.SlackBuild index 1167b8bbe4..7e158fc510 100644 --- a/graphics/psftools/psftools.SlackBuild +++ b/graphics/psftools/psftools.SlackBuild @@ -1,8 +1,8 @@ -#!/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. @@ -18,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.1.1} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -31,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} @@ -77,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 @@ -132,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 |