# Contributor: Steeve Chailloux # Contributor: Jakub Jirutka # Maintainer: Jakub Jirutka setvar pkgname = 'apache-ant' setvar pkgver = '1.10.1' setvar pkgrel = '0' setvar pkgdesc = ""A java-based build tool."" setvar url = ""http://ant.apache.org/"" setvar arch = ""noarch"" setvar license = ""ASL-2.0"" setvar depends = ""openjdk8-jre-base"" setvar makedepends = """" setvar source = ""http://archive.apache.org/dist/ant/binaries/$pkgname-$pkgver-bin.tar.bz2"" setvar builddir = ""$srcdir/$pkgname-$pkgver"" setvar _anthome = ""/usr/share/java/$pkgname"" proc build { cd $builddir cat > $pkgname.sh <<< """ ANT_HOME="$_anthome" export ANT_HOME """ } proc 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 { install -m644 -D $file "$pkgdir"/usr/share/licenses/$pkgname/$file || return 1 } install -m644 -D $pkgname.sh "$pkgdir"/etc/profile.d/$pkgname.sh } setvar sha512sums = ""91992ae8ed122be8d5a6cc423149a8d0cef4e49ada60691c4802eab44bf65dc4d14b9cdfde61b3d4b705a24c7cdc8ab62502f93b4b8a1cbf0b3ffa580ff23738 apache-ant-1.10.1-bin.tar.bz2""