summaryrefslogtreecommitdiff
path: root/pcr/java-commons-cli/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'pcr/java-commons-cli/PKGBUILD')
-rw-r--r--pcr/java-commons-cli/PKGBUILD40
1 files changed, 18 insertions, 22 deletions
diff --git a/pcr/java-commons-cli/PKGBUILD b/pcr/java-commons-cli/PKGBUILD
index 247f79f0e..e16457cb7 100644
--- a/pcr/java-commons-cli/PKGBUILD
+++ b/pcr/java-commons-cli/PKGBUILD
@@ -2,7 +2,7 @@
_pkgname=commons-cli
pkgname=java-${_pkgname}
-pkgver=1.3.1
+pkgver=1.4
pkgrel=1
pkgdesc="Java API for parsing command line options passed to programs"
arch=('any')
@@ -10,22 +10,20 @@ url="http://commons.apache.org/cli/"
license=('APACHE')
depends=('java-runtime')
makedepends=('java-environment' 'jh' 'junit')
-source=("https://archive.apache.org/dist/commons/cli/source/${_pkgname}-${pkgver}-src.tar.gz")
-sha256sums=('d4f7eedf6def7cd574ff9b0050a5a7203a702ed13c88d9fbb85b84284ab172ba')
+source=("https://archive.apache.org/dist/commons/cli/source/${_pkgname}-$pkgver-src.tar.gz")
+sha256sums=('a1def8d94e4fe6be4ffde100a74a647fe3df5ba02f85e3c9191fbb00be880f16')
prepare() {
- cd "${srcdir}/${_pkgname}-${pkgver}-src"
+ cd "$srcdir/${_pkgname}-$pkgver-src"
mkdir -p build/classes
mkdir -p build/test-classes
}
build() {
- cd "${srcdir}/${_pkgname}-${pkgver}-src"
+ cd "$srcdir/${_pkgname}-$pkgver-src"
- javac -d "build/classes" \
- $(find "src/main/java" -name \*.java)
- javadoc -d "build/javadoc" \
- -sourcepath "src/main/java" -subpackages org
+ javac -d build/classes $(find src/main/java -name \*.java)
+ javadoc -d "build/javadoc" -sourcepath "src/main/java" -subpackages org
CLASSPATH="build/classes:/usr/share/java/junit.jar"
javac -classpath $CLASSPATH -d "build/test-classes" \
@@ -35,22 +33,20 @@ build() {
}
package() {
- cd "${srcdir}/${_pkgname}-${pkgver}-src"
+ cd "$srcdir/${_pkgname}-$pkgver-src"
# Install license file
- install -Dm644 LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.txt"
+ install -Dm644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE.txt"
# Install documentation
- install -d "${pkgdir}/usr/share/doc/${pkgname}"
- cp -r "build/javadoc" "${pkgdir}/usr/share/doc/${pkgname}"
+ install -d "$pkgdir/usr/share/doc/$pkgname"
+ cp -r "build/javadoc" "$pkgdir/usr/share/doc/$pkgname"
# Install Maven artifacts
- export DESTDIR=${pkgdir}
- jh mvn-install ${_pkgname} ${_pkgname} ${pkgver} \
- "${srcdir}/${_pkgname}-${pkgver}-src/pom.xml" \
- "${_pkgname}.jar" \
- "${_pkgname}-${pkgver}.jar"
-
- ln -s "/usr/share/java/${_pkgname}-${pkgver}.jar" \
- "${pkgdir}/usr/share/java/${_pkgname}.jar"
-} \ No newline at end of file
+ export DESTDIR=$pkgdir
+ jh mvn-install ${_pkgname} ${_pkgname} $pkgver \
+ 'pom.xml' "${_pkgname}.jar" "${_pkgname}-$pkgver.jar"
+
+ ln -s "/usr/share/java/${_pkgname}-$pkgver.jar" \
+ "$pkgdir/usr/share/java/${_pkgname}.jar"
+}