java-commons-io: update to 2.6

Switch to openjdk8 and apache-maven as build tool because there
is no build.xml file for ant in the package.
This commit is contained in:
Jürgen Buchmüller 2020-03-23 15:36:03 +01:00
parent 8a5b24e4de
commit 0916d16208
1 changed files with 8 additions and 7 deletions

View File

@ -1,25 +1,26 @@
# Template file for 'java-commons-io'
_origname=commons-io
pkgname=java-commons-io
version=2.5
version=2.6
revision=1
archs=noarch
wrksrc="${_origname}-${version}-src"
hostmakedepends="oracle-jdk apache-ant"
hostmakedepends="openjdk8 apache-maven which"
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
distfiles="https://downloads.apache.org//commons/io/source/${_origname}-${version}-src.tar.gz"
checksum=f68167938ab15ced969747bc6b4d91c4f923a34ad4fdb2e8c8c3029adaa47e0c
do_build() {
cd ${wrksrc}
source /etc/profile.d/11_oracle-jdk.sh
ant jar
source /etc/profile.d/10_openjdk8.sh
source /etc/profile.d/apache-maven.sh
mvn package
}
do_install() {
vinstall ${wrksrc}/target/${_origname}-2.5-SNAPSHOT.jar 755 /usr/share/java/${_origname} ${_origname}.jar
vinstall ${wrksrc}/target/${_origname}-${version}.jar 755 /usr/share/java/${_origname} ${_origname}.jar
}