summaryrefslogtreecommitdiffstats
path: root/abs/extra-testing/apache-ant
diff options
context:
space:
mode:
authorCecil Hugh Watson <knoppmyth@gmail.com>2009-05-02 08:55:02 (GMT)
committerCecil Hugh Watson <knoppmyth@gmail.com>2009-05-02 08:55:02 (GMT)
commit25e39d3ad6f66fad48c0183dd568e2fbfded5ca2 (patch)
tree0d8bb2c9bca3a20c3ac2067ff7453c0aae5e8a3e /abs/extra-testing/apache-ant
parent1f70585d4abb80a2cc47316ab2b4851637939997 (diff)
downloadlinhes_pkgbuild-25e39d3ad6f66fad48c0183dd568e2fbfded5ca2.zip
linhes_pkgbuild-25e39d3ad6f66fad48c0183dd568e2fbfded5ca2.tar.gz
linhes_pkgbuild-25e39d3ad6f66fad48c0183dd568e2fbfded5ca2.tar.bz2
Latest version or newly required deps for various packages.
Diffstat (limited to 'abs/extra-testing/apache-ant')
-rw-r--r--abs/extra-testing/apache-ant/PKGBUILD41
1 files changed, 41 insertions, 0 deletions
diff --git a/abs/extra-testing/apache-ant/PKGBUILD b/abs/extra-testing/apache-ant/PKGBUILD
new file mode 100644
index 0000000..663cc19
--- /dev/null
+++ b/abs/extra-testing/apache-ant/PKGBUILD
@@ -0,0 +1,41 @@
+# $Id: PKGBUILD 24082 2009-01-12 21:42:39Z paul $
+# Contributor: Andrew Wright <andreww@photism.org>
+# Maintainer: Paul Mattal <paul@archlinux.org>
+
+pkgname=apache-ant
+pkgver=1.7.1
+pkgrel=1
+pkgdesc="Ant is a java-based build tool."
+arch=(i686 x86_64)
+license=('APACHE')
+url="http://ant.apache.org/"
+depends=('java-runtime')
+makedepends=('java-environment')
+noextract=('junit3.8.1.zip')
+source=(http://archive.apache.org/dist/ant/source/${pkgname}-${pkgver}-src.tar.bz2
+ http://heanet.dl.sourceforge.net/sourceforge/junit/junit3.8.1.zip)
+md5sums=('0d68db4a1ada5c91bcbf53cefd0c2fd7' '5110326e4b7f7497dfa60ede4b626751')
+
+build() {
+ cd ${startdir}/src || return 1
+ unzip junit3.8.1.zip || return 1
+
+ cd ${startdir}/src/${pkgname}-${pkgver}
+ if [ -f /etc/profile.d/java-gcj-compat.sh ]; then
+ . /etc/profile.d/java-gcj-compat.sh
+ elif [ -f /etc/profile.d/jdk.sh ]; then
+ . /etc/profile.d/jre.sh
+ . /etc/profile.d/jdk.sh
+ fi
+
+ # we need the junit jar in the classpath to build ant
+ export CLASSPATH="${startdir}/src/junit3.8.1/junit.jar"
+
+ # build
+ mkdir dist || return 1
+ ./build.sh -Ddist.dir=dist/ dist || return 1
+
+ # install
+ export ANT_HOME="${startdir}/pkg/usr"
+ ./build.sh install-lite || return 1
+}