diff options
author | Omar Vega Ramos <ovruni@gnu.org.pe> | 2017-04-22 13:17:22 -0500 |
---|---|---|
committer | Omar Vega Ramos <ovruni@gnu.org.pe> | 2017-04-22 13:17:22 -0500 |
commit | a77d227bbee8560b3639c580e101546251c5e789 (patch) | |
tree | 24cffb9dd0f312f94e630f34e6b86cc295182094 | |
parent | 4d5ceb7b3df08e6a3515bfb0bb184dd8ce9c23e8 (diff) | |
download | abslibre-a77d227bbee8560b3639c580e101546251c5e789.tar.gz abslibre-a77d227bbee8560b3639c580e101546251c5e789.tar.bz2 abslibre-a77d227bbee8560b3639c580e101546251c5e789.zip |
java-commons-cli-1.4-1: updating version
-rw-r--r-- | pcr/java-commons-cli/PKGBUILD | 40 |
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" +} |