diff options
Diffstat (limited to 'system/unp/unp.SlackBuild')
-rw-r--r-- | system/unp/unp.SlackBuild | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/system/unp/unp.SlackBuild b/system/unp/unp.SlackBuild index c9daa099c2611..9f2f0e3e1da48 100644 --- a/system/unp/unp.SlackBuild +++ b/system/unp/unp.SlackBuild @@ -10,9 +10,18 @@ PRGNAM=unp VERSION=${VERSION:-2.0~pre7+nmu1} 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} @@ -47,4 +56,4 @@ make DESTDIR=$PKG make install 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 |