apache-ant: cleaning up unneeded files; link ant to /usr/bin
This commit is contained in:
parent
3164546902
commit
675e871ff3
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'apache-ant'
|
# Template file for 'apache-ant'
|
||||||
pkgname="apache-ant"
|
pkgname="apache-ant"
|
||||||
version="1.9.3"
|
version="1.9.3"
|
||||||
revision=1
|
revision=2
|
||||||
short_desc="Java library and command-line tool that help building software"
|
short_desc="Java library and command-line tool that help building software"
|
||||||
maintainer="Enno Boland <eb@s01.de>"
|
maintainer="Enno Boland <eb@s01.de>"
|
||||||
license="Apache License"
|
license="Apache License"
|
||||||
|
@ -27,13 +27,18 @@ do_install() {
|
||||||
JAVA_HOME=/usr/share/java ./build.sh -Ddist.dir=$DESTDIR/$_prefix dist
|
JAVA_HOME=/usr/share/java ./build.sh -Ddist.dir=$DESTDIR/$_prefix dist
|
||||||
|
|
||||||
vinstall ${FILESDIR}/apache-ant.sh 644 etc/profile.d
|
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
|
||||||
}
|
}
|
||||||
|
|
||||||
apache-ant-doc_package() {
|
apache-ant-doc_package() {
|
||||||
short_desc+=" - documentation"
|
short_desc+=" - documentation"
|
||||||
depends="${sourcepkg}>=${version}_${revision}"
|
depends="${sourcepkg}>=${version}_${revision}"
|
||||||
noarch="yes"
|
noarch="yes"
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
vmove $_prefix/manual
|
vmove $_prefix/manual
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue