summaryrefslogtreecommitdiffstats
path: root/accessibility/fonts-opendyslexic/fonts-opendyslexic.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'accessibility/fonts-opendyslexic/fonts-opendyslexic.SlackBuild')
-rw-r--r--accessibility/fonts-opendyslexic/fonts-opendyslexic.SlackBuild11
1 files changed, 10 insertions, 1 deletions
diff --git a/accessibility/fonts-opendyslexic/fonts-opendyslexic.SlackBuild b/accessibility/fonts-opendyslexic/fonts-opendyslexic.SlackBuild
index b6fdd1a5d4..1f5dc30a33 100644
--- a/accessibility/fonts-opendyslexic/fonts-opendyslexic.SlackBuild
+++ b/accessibility/fonts-opendyslexic/fonts-opendyslexic.SlackBuild
@@ -21,11 +21,20 @@ PRGNAM=fonts-opendyslexic
VERSION=${VERSION:-20160623}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
SRCDIR=open-dyslexic-$VERSION-Stable
ARCH=noarch
+# 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}
@@ -89,4 +98,4 @@ if [ -n "$MKFDIRS" ]; then
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