[arch-commits] Commit in java-commons-lang/trunk (PKGBUILD)
Jonas Witschel
diabonas at archlinux.org
Wed Oct 16 16:13:13 UTC 2019
Date: Wednesday, October 16, 2019 @ 16:13:12
Author: diabonas
Revision: 516354
upgpkg: java-commons-lang 3.9-5
Simplify PKGBUILD by using "mvn package" instead of "mvn install"
Modified:
java-commons-lang/trunk/PKGBUILD
----------+
PKGBUILD | 13 +++++--------
1 file changed, 5 insertions(+), 8 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2019-10-16 16:13:05 UTC (rev 516353)
+++ PKGBUILD 2019-10-16 16:13:12 UTC (rev 516354)
@@ -1,7 +1,7 @@
# Maintainer: Jonas Witschel <diabonas at archlinux.org>
pkgname=java-commons-lang
pkgver=3.9
-pkgrel=4
+pkgrel=5
pkgdesc='A host of helper utilities for the java.lang API'
arch=('any')
url='https://commons.apache.org/proper/commons-lang/'
@@ -15,10 +15,7 @@
build() {
cd "commons-lang3-$pkgver-src"
- mvn -Dmaven.repo.local="$srcdir/commons-lang3-$pkgver-src/.m2/repository" \
- -Dmaven.test.skip=true \
- -Drat.skip=true \
- install
+ mvn -Dmaven.test.skip=true clean package
# Timestamps in JAR files generated by Maven do not honour SOURCE_DATE_EPOCH
# (https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=74682318)
@@ -27,11 +24,11 @@
check() {
cd "commons-lang3-$pkgver-src"
- mvn -Drat.skip=true test
+ mvn test
}
package() {
- cd "commons-lang3-$pkgver-src/target"
- install -Dm644 "commons-lang3-$pkgver.jar" -t "$pkgdir/usr/share/java/commons-lang"
+ cd "commons-lang3-$pkgver-src"
+ install -Dm644 "target/commons-lang3-$pkgver.jar" -t "$pkgdir/usr/share/java/commons-lang"
ln -s "commons-lang3-$pkgver.jar" "$pkgdir/usr/share/java/commons-lang/commons-lang.jar"
}
More information about the arch-commits
mailing list