32 lines
899 B
Bash
32 lines
899 B
Bash
# Template file for 'java-commons-io'
|
|
_origname=commons-io
|
|
pkgname=java-commons-io
|
|
version=2.6
|
|
revision=1
|
|
archs=noarch
|
|
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="https://downloads.apache.org//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() {
|
|
cd ${wrksrc}
|
|
source /etc/profile.d/10_openjdk8.sh
|
|
source /etc/profile.d/apache-maven.sh
|
|
mvn package
|
|
}
|
|
|
|
do_install() {
|
|
vinstall ${wrksrc}/target/${_origname}-${version}.jar 755 /usr/share/java/${_origname} ${_origname}.jar
|
|
}
|