void-packages/srcpkgs/java-commons-io/template

26 lines
801 B
Bash

# Template file for 'java-commons-io'
_origname="commons-io"
pkgname=java-commons-io
version=2.5
revision=1
maintainer="Carlo Dormeletti <carloDOTdormelettiATaliceDOTit>"
homepage="http://commons.apache.org/io"
license="Apache-2.0"
short_desc="IO related classes for Java"
hostmakedepends="oracle-jdk apache-ant"
depends="virtual?java-runtime"
noarch="yes"
distfiles="http://ftp-stud.hs-esslingen.de/pub/Mirrors/ftp.apache.org/dist/commons/io/source/${_origname}-${version}-src.tar.gz"
checksum=631f75ea09870b40bb140dff456a36be6965619ba51fa23f4c7d4b966520be60
wrksrc="${_origname}-${version}-src"
do_build() {
cd ${wrksrc}
source /etc/profile.d/11_oracle-jdk.sh
ant jar
}
do_install() {
vinstall ${wrksrc}/target/${_origname}-2.5-SNAPSHOT.jar 755 /usr/share/java/${_origname} ${_origname}.jar
}