diff options
Diffstat (limited to 'network/nextcloud-client/nextcloud-client.SlackBuild')
-rw-r--r-- | network/nextcloud-client/nextcloud-client.SlackBuild | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/network/nextcloud-client/nextcloud-client.SlackBuild b/network/nextcloud-client/nextcloud-client.SlackBuild index 480ed9aa3a0ae..5b2f14354ae4d 100644 --- a/network/nextcloud-client/nextcloud-client.SlackBuild +++ b/network/nextcloud-client/nextcloud-client.SlackBuild @@ -33,6 +33,7 @@ VERSION=${VERSION:-2.3.3} OWNCLOUD_VERSION=${OWNCLOUD_VERSION:-2.4.2} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} SRCNAM=client_theming @@ -44,6 +45,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} @@ -116,4 +125,4 @@ cat $CWD/nextcloud.desktop > $PKG/usr/share/applications/nextcloud.desktop mv $PKG/etc/Nextcloud/sync-exclude.lst $PKG/etc/Nextcloud/sync-exclude.lst.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 |