diff options
Diffstat (limited to 'system/ttf-ipaex/ttf-ipaex.SlackBuild')
-rw-r--r-- | system/ttf-ipaex/ttf-ipaex.SlackBuild | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/system/ttf-ipaex/ttf-ipaex.SlackBuild b/system/ttf-ipaex/ttf-ipaex.SlackBuild index b0504fac8d..18acd0a00e 100644 --- a/system/ttf-ipaex/ttf-ipaex.SlackBuild +++ b/system/ttf-ipaex/ttf-ipaex.SlackBuild @@ -1,9 +1,8 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for ttf-ipaex -# $Id: ttf-ipaex.SlackBuild,v 1.2 2018/09/18 03:45:07 pomf Exp pomf $ -# Copyright 2018 pomfland +# Copyright 2020 pomfland # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -23,17 +22,27 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +cd $(dirname $0) ; CWD=$(pwd) + PRGNAM=ttf-ipaex -VERSION=${VERSION:-003.01} +VERSION=${VERSION:-004.01} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} SRCNAM=IPAexfont _VERSION=${VERSION/./} ARCH=noarch -CWD=$(pwd) +# If the variable PRINT_PACKAGE_NAME is set, then this script will report what +# the name of the created package would be, and then exit. This information +# could be useful to other scripts. +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} @@ -67,4 +76,4 @@ cat $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/doinst.sh > $PKG/install/doinst.sh 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 |