diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2016-05-01 22:59:38 +0200 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2016-05-02 15:56:07 +0200 |
commit | dd7de0a6a39a95849dd7dfd1e245d37059c6c9bc (patch) | |
tree | e9fa848a3fca17c42ab35e606b5d83f71b53b1db /community/apache-ant/APKBUILD | |
parent | 60dc6f5b13cd44db142caf1d1e6825ad6f73fed6 (diff) | |
download | aports-dd7de0a6a39a95849dd7dfd1e245d37059c6c9bc.tar.bz2 aports-dd7de0a6a39a95849dd7dfd1e245d37059c6c9bc.tar.xz |
testing/apache-ant: move to the community repo
Diffstat (limited to 'community/apache-ant/APKBUILD')
-rw-r--r-- | community/apache-ant/APKBUILD | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/community/apache-ant/APKBUILD b/community/apache-ant/APKBUILD new file mode 100644 index 0000000000..207942a209 --- /dev/null +++ b/community/apache-ant/APKBUILD @@ -0,0 +1,60 @@ +# Contributor: Steeve Chailloux <steeve@chaahk.com> +# Contributor: Jakub Jirutka <jakub@jirutka.cz> +# Maintainer: Jakub Jirutka <jakub@jirutka.cz> +pkgname=apache-ant +pkgver=1.9.7 +pkgrel=0 +pkgdesc="A java-based build tool." +url="http://ant.apache.org/" +arch="x86_64 x86" +license="ASL-2.0" +depends="openjdk8-jre-base" +makedepends="" +source="http://archive.apache.org/dist/ant/binaries/$pkgname-$pkgver-bin.tar.bz2" +builddir="$srcdir/$pkgname-$pkgver" + +_anthome="/usr/share/java/$pkgname" + +build() { + cd "$builddir" + + cat > $pkgname.sh <<-EOF + ANT_HOME="$_anthome" + export ANT_HOME + EOF +} + +package() { + local destdir="$pkgdir/$_anthome" + + cd "$builddir" + + install -dm755 "$destdir"/bin + rm bin/*.bat bin/*.cmd + install -m755 bin/* "$destdir"/bin || return 1 + + install -dm755 "$pkgdir"/usr/bin + ln -sf $_anthome/bin/ant "$pkgdir"/usr/bin/ant || return 1 + + cp -r etc "$destdir"/ || return 1 + + install -dm755 "$destdir"/lib + install -m644 lib/*.jar "$destdir"/lib || return 1 + + # symlink to junit so it's on the javac build path for ant + # matches behavior on ubuntu 9 and makes sense for compatibility + # http://bugs.archlinux.org/task/15229 + ln -sf ../../junit.jar "$destdir"/lib/junit.jar || return 1 + + # The license says the NOTICE file should be redistributed for + # derivative works, so lets supply it. + local file; for file in LICENSE NOTICE; do + install -m644 -D $file "$pkgdir"/usr/share/licenses/$pkgname/$file || return 1 + done + + install -m644 -D $pkgname.sh "$pkgdir"/etc/profile.d/$pkgname.sh +} + +md5sums="99a86981333a0ff39bb56c963d1f492b apache-ant-1.9.7-bin.tar.bz2" +sha256sums="be2ff3026cc655dc002bbcce100bd6724d448c63f702aa82b6d9899b22db7808 apache-ant-1.9.7-bin.tar.bz2" +sha512sums="3954a6ad3f522c135f327ba0d376eb16ae42103849c8cc5cd6c8c6e87b8c5433c95a0f2d4dfa3e6c2705ee0b8996e5b27d0b2248f64a05fc8c902116cc45a7b2 apache-ant-1.9.7-bin.tar.bz2" |