java-commons-io: fix distfiles

This commit is contained in:
Đoàn Trần Công Danh 2020-12-17 22:38:38 +07:00
parent 082cc41f05
commit 6a89d89bea

View file

@ -10,9 +10,8 @@ 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"
distfiles="http://archive.apache.org/dist/commons/io/source/${_origname}-${version}-src.tar.gz"
checksum=f68167938ab15ced969747bc6b4d91c4f923a34ad4fdb2e8c8c3029adaa47e0c
broken="https://api.travis-ci.org/v3/job/732821420/log.txt"
case "$XBPS_MACHINE" in
ppc64*) ;;
@ -20,12 +19,11 @@ case "$XBPS_MACHINE" in
esac
do_build() {
cd ${wrksrc}
source /etc/profile.d/10_openjdk8.sh
source /etc/profile.d/apache-maven.sh
mvn package
mvn package -Dmaven.test.skip=true
}
do_install() {
vinstall ${wrksrc}/target/${_origname}-${version}.jar 755 /usr/share/java/${_origname} ${_origname}.jar
vinstall target/${_origname}-${version}.jar 755 \
usr/share/java/${_origname} ${_origname}.jar
}