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

30 lines
846 B
Bash

# Template file for 'java-commons-io'
_origname=commons-io
pkgname=java-commons-io
version=2.6
revision=3
wrksrc="${_origname}-${version}-src"
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://archive.apache.org/dist/commons/io/source/${_origname}-${version}-src.tar.gz"
checksum=f68167938ab15ced969747bc6b4d91c4f923a34ad4fdb2e8c8c3029adaa47e0c
case "$XBPS_MACHINE" in
ppc64*) ;;
ppc*|arm*) broken="jar creation runs out of memory with zero";;
esac
do_build() {
source /etc/profile.d/openjdk.sh
mvn package -Dmaven.test.skip=true
}
do_install() {
vinstall target/${_origname}-${version}.jar 755 \
usr/share/java/${_origname} ${_origname}.jar
}