aboutsummaryrefslogtreecommitdiff
path: root/desktop/numix-icon-theme/numix-icon-theme.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'desktop/numix-icon-theme/numix-icon-theme.SlackBuild')
-rw-r--r--desktop/numix-icon-theme/numix-icon-theme.SlackBuild11
1 files changed, 10 insertions, 1 deletions
diff --git a/desktop/numix-icon-theme/numix-icon-theme.SlackBuild b/desktop/numix-icon-theme/numix-icon-theme.SlackBuild
index 02b01b387990..69c91c759c7b 100644
--- a/desktop/numix-icon-theme/numix-icon-theme.SlackBuild
+++ b/desktop/numix-icon-theme/numix-icon-theme.SlackBuild
@@ -31,9 +31,18 @@ PRGNAM="numix-icon-theme"
VERSION=${VERSION:-20200320}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
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}
@@ -70,4 +79,4 @@ cd $PKG
find . -type l \
-printf '( cd %h ; rm -rf %f )\n( cd %h ; ln -sf %l %f )\n' -delete | \
sed 's,cd \./,cd ,' >> $PKG/install/doinst.sh
-/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