aboutsummaryrefslogtreecommitdiff
path: root/development/apache-ant/apache-ant.SlackBuild
diff options
context:
space:
mode:
authorDugan Chen <dugan_c@fastmail.fm>2010-05-11 20:00:21 +0200
committerRobby Workman <rworkman@slackbuilds.org>2010-05-11 20:00:21 +0200
commit8307fc209b0db590bc49a9405a3b2078482a6100 (patch)
treeef18ffae7e693586331fc60ba9009e0507d0ce3e /development/apache-ant/apache-ant.SlackBuild
parent861f19c444b88428ee72c808de6a08d2bacef9fe (diff)
development/apache-ant: Added to 12.0 repository
Diffstat (limited to 'development/apache-ant/apache-ant.SlackBuild')
-rw-r--r--development/apache-ant/apache-ant.SlackBuild39
1 files changed, 39 insertions, 0 deletions
diff --git a/development/apache-ant/apache-ant.SlackBuild b/development/apache-ant/apache-ant.SlackBuild
new file mode 100644
index 0000000000000..3e025bc607329
--- /dev/null
+++ b/development/apache-ant/apache-ant.SlackBuild
@@ -0,0 +1,39 @@
+#!/bin/sh
+
+# Slackware build script for Apache Ant
+# Written by Dugan Chen (dugan_c@fastmail.fm)
+
+set -e
+
+PRGNAM=apache-ant
+VERSION=1.7.0
+ARCH=${ARCH:-i486}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+CWD=$(pwd)
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+rm -rf $PKG
+mkdir -p $TMP $PKG/opt/$PRGNAM $OUTPUT
+cd $TMP
+rm -rf $PRGNAM-$VERSION
+tar xvf $CWD/$PRGNAM-$VERSION-bin.tar.bz2
+cd $PRGNAM-$VERSION
+cp -a bin lib etc $PKG/opt/$PRGNAM
+
+mkdir -p $PKG/etc/profile.d/
+cp $CWD/profile.d/* $PKG/etc/profile.d/
+chmod 0755 $PKG/etc/profile.d/*
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a INSTALL KEYS LICENSE.dom LICENSE.sax LICENSE.xerces NOTICE README \
+ WHATSNEW docs/* $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+
+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