summaryrefslogtreecommitdiffstats
path: root/development/apache-ant/apache-ant.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'development/apache-ant/apache-ant.SlackBuild')
-rw-r--r--development/apache-ant/apache-ant.SlackBuild18
1 files changed, 14 insertions, 4 deletions
diff --git a/development/apache-ant/apache-ant.SlackBuild b/development/apache-ant/apache-ant.SlackBuild
index 9a97d02b27..c8fe843283 100644
--- a/development/apache-ant/apache-ant.SlackBuild
+++ b/development/apache-ant/apache-ant.SlackBuild
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for apache-ant
@@ -27,17 +27,27 @@
# Started by Dugan Chen (dugan[underscore]c[at]fastmail[dot]fm)
# Taken over by Vincent Batts (vbatts@hashbangbash.com)
+cd $(dirname $0) ; CWD=$(pwd)
+
PRGNAM=apache-ant
-VERSION=${VERSION:-1.9.14}
+VERSION=${VERSION:-1.10.12}
ARCH=noarch
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
TEAM=$(echo $PRGNAM | cut -d- -f1)
PROJECT=$(echo $PRGNAM | cut -d- -f2)
ANT_HOME=/usr/share/$PROJECT
-CWD=$(pwd)
+# 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}
@@ -89,4 +99,4 @@ 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