void-packages/srcpkgs/apache-ant/template

44 lines
1.1 KiB
Bash
Raw Normal View History

2014-02-28 18:31:43 +01:00
# Template file for 'apache-ant'
pkgname="apache-ant"
2015-06-09 08:52:00 +02:00
version="1.9.5"
revision=1
2014-02-28 18:31:43 +01:00
short_desc="Java library and command-line tool that help building software"
maintainer="Enno Boland <eb@s01.de>"
license="Apache License"
homepage="http://ant.apache.org"
distfiles="http://mirror.dkd.de/apache/ant/source/apache-ant-${version}-src.tar.bz2"
2015-06-09 08:52:00 +02:00
checksum="a4a9c797597ffab321384afa06286e37d444475449b74940b3e683a4b695f6fc"
2014-09-15 18:49:20 +02:00
hostmakedepends="openjdk"
2014-09-15 17:48:42 +02:00
depends="virtual?java-runtime"
2014-02-28 18:31:43 +01:00
noarch="yes"
_prefix=usr/share/apache-ant
do_configure() {
# Disable tests
sed -i 's/jars,test-jar/jars/' build.xml
}
do_build() {
export JAVA_HOME=/usr/lib/jvm/openjdk
./build.sh -Ddist.dir=$DESTDIR/$_prefix jars
2014-02-28 18:31:43 +01:00
}
do_install() {
export JAVA_HOME=/usr/lib/jvm/openjdk
./build.sh -Ddist.dir=$DESTDIR/$_prefix dist
2014-02-28 18:31:43 +01:00
vinstall ${FILESDIR}/apache-ant.sh 644 etc/profile.d
rm $DESTDIR/$_prefix/bin/*.bat
rm $DESTDIR/$_prefix/bin/*.cmd
vmkdir usr/bin
ln -rs $DESTDIR/$_prefix/bin/ant $DESTDIR/usr/bin
2014-02-28 18:31:43 +01:00
}
apache-ant-doc_package() {
short_desc+=" - documentation"
depends="${sourcepkg}>=${version}_${revision}"
2014-02-28 18:31:43 +01:00
noarch="yes"
pkg_install() {
vmove $_prefix/manual
}
2014-02-28 18:31:43 +01:00
}