summaryrefslogtreecommitdiff
path: root/libraries/rhino/rhino.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/rhino/rhino.SlackBuild')
-rw-r--r--libraries/rhino/rhino.SlackBuild14
1 files changed, 7 insertions, 7 deletions
diff --git a/libraries/rhino/rhino.SlackBuild b/libraries/rhino/rhino.SlackBuild
index 37cf5f432d..6d5f67f9f1 100644
--- a/libraries/rhino/rhino.SlackBuild
+++ b/libraries/rhino/rhino.SlackBuild
@@ -3,8 +3,6 @@
# Slackware build script for rhino
# Written by Vincent Batts, vbatts@hashbangbash.com
-set -e
-
PRGNAM=rhino
VERSION=1_7R2
ARCH=${ARCH:-i486}
@@ -16,7 +14,7 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-ANT_HOME=${ANT_HOME:-/usr/share/ant}
+ANTHOME="/usr/share/ant"
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
@@ -29,6 +27,8 @@ elif [ "$ARCH" = "x86_64" ]; then
LIBDIRSUFFIX="64"
fi
+set -e
+
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
@@ -37,11 +37,11 @@ unzip $CWD/${PRGNAM}${VERSION}.zip
cd ${PRGNAM}${VERSION}
chown -R root:root .
-mkdir -p $PKG/$ANT_HOME/lib/ $PKG/usr/share/java
-cp js.jar $PKG/$ANT_HOME/lib/$PRGNAM.jar
+mkdir -p $PKG/$ANTHOME/lib/ $PKG/usr/share/java
+cp js.jar $PKG/$ANTHOME/lib/$PRGNAM.jar
cd $PKG/usr/share/java
- ln -s ../../../$ANT_HOME/lib/$PRGNAM.jar
+ ln -s ../../../$ANTHOME/lib/$PRGNAM.jar
cd -
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
@@ -53,4 +53,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.tgz
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}