diff options
Diffstat (limited to 'system/podman/podman.SlackBuild')
-rw-r--r-- | system/podman/podman.SlackBuild | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/system/podman/podman.SlackBuild b/system/podman/podman.SlackBuild index ee201d69579cc..6e073391b8f34 100644 --- a/system/podman/podman.SlackBuild +++ b/system/podman/podman.SlackBuild @@ -31,6 +31,7 @@ VERSION=${VERSION:-1.6.2} GIT_COMMIT="f3ffda1e08f19e9a6a88484136b5eed76533f21a" BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} # The domain part of the go package name, usually the hosting platform DOMAIN=github.com @@ -45,6 +46,14 @@ if [ -z "$ARCH" ]; then esac fi +# 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} @@ -111,4 +120,4 @@ cp $CWD/mounts.conf $PKG/etc/containers/mounts.conf.new cp $CWD/policy.json $PKG/etc/containers/policy.json.new 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 |