aboutsummaryrefslogtreecommitdiff
path: root/office/aigaion/aigaion.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'office/aigaion/aigaion.SlackBuild')
-rw-r--r--office/aigaion/aigaion.SlackBuild11
1 files changed, 10 insertions, 1 deletions
diff --git a/office/aigaion/aigaion.SlackBuild b/office/aigaion/aigaion.SlackBuild
index 4ae435e69918..b8d2f8655b32 100644
--- a/office/aigaion/aigaion.SlackBuild
+++ b/office/aigaion/aigaion.SlackBuild
@@ -14,6 +14,7 @@ VERSION=${VERSION:-2.2.b}
ARCH=noarch
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
MAJORVERSION=2
DOCROOT=${DOCROOT:-/var/www/htdocs}
@@ -21,6 +22,14 @@ DOCROOT=${DOCROOT:-/var/www/htdocs}
PHPUSER=${PHPUSER:-root}
PHPGROUP=${PHPGROUP:-apache}
+# 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}
@@ -73,5 +82,5 @@ mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
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