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

26 lines
781 B
Bash

# Template file for 'java-commons-io'
_origname=commons-io
pkgname=java-commons-io
version=2.5
revision=1
archs=noarch
wrksrc="${_origname}-${version}-src"
hostmakedepends="oracle-jdk apache-ant"
depends="virtual?java-runtime"
short_desc="IO related classes for Java"
maintainer="Orphaned <orphan@voidlinux.org>"
license="Apache-2.0"
homepage="http://commons.apache.org/io"
distfiles="http://ftp-stud.hs-esslingen.de/pub/Mirrors/ftp.apache.org/dist/commons/io/source/${_origname}-${version}-src.tar.gz"
checksum=631f75ea09870b40bb140dff456a36be6965619ba51fa23f4c7d4b966520be60
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
}