diff options
author | Omar Vega Ramos <ovruni@gnu.org.pe> | 2016-11-03 12:11:56 -0500 |
---|---|---|
committer | Omar Vega Ramos <ovruni@gnu.org.pe> | 2016-11-03 12:11:56 -0500 |
commit | f0e20386bf10e412833d08a00eb80e5c55cb0354 (patch) | |
tree | a215bf585014d3f7c5ea138625957290792324dc /pcr/args4j | |
parent | 80914d7c8e9027fefd7f1ba63cd792abb1bf1b62 (diff) | |
download | abslibre-f0e20386bf10e412833d08a00eb80e5c55cb0354.tar.gz abslibre-f0e20386bf10e412833d08a00eb80e5c55cb0354.tar.bz2 abslibre-f0e20386bf10e412833d08a00eb80e5c55cb0354.zip |
args4j-2.33-1.1: rebuild
Diffstat (limited to 'pcr/args4j')
-rw-r--r-- | pcr/args4j/PKGBUILD | 41 |
1 files changed, 18 insertions, 23 deletions
diff --git a/pcr/args4j/PKGBUILD b/pcr/args4j/PKGBUILD index 1be7f8087..35e9a9601 100644 --- a/pcr/args4j/PKGBUILD +++ b/pcr/args4j/PKGBUILD @@ -2,50 +2,45 @@ pkgname=args4j pkgver=2.33 -pkgrel=1 +pkgrel=1.1 pkgdesc="Java command line options parser" arch=('any') -url="http://code.google.com/p/protobuf/" +url='http://args4j.kohsuke.org/' license=('MIT') depends=('java-runtime') makedepends=('java-environment' 'jh') -source=("https://github.com/kohsuke/${pkgname}/archive/${pkgname}-site-${pkgver}.tar.gz") +source=("https://github.com/kohsuke/$pkgname/archive/$pkgname-site-$pkgver.tar.gz") sha256sums=('b4305ca1ff31d3492dd93770f302242c2bf536b440bca24b2580646b184a3733') prepare() { - cd "${srcdir}/${pkgname}-${pkgname}-site-${pkgver}/${pkgname}" + cd "$srcdir/$pkgname-$pkgname-site-$pkgver/$pkgname" mkdir -p build/classes } build() { - cd "${srcdir}/${pkgname}-${pkgname}-site-${pkgver}/${pkgname}" + cd "$srcdir/$pkgname-$pkgname-site-$pkgver/$pkgname" - javac -d "build/classes" \ - $(find src -name \*.java) + javac -d build/classes $(find src -name \*.java) + javadoc -d build/javadoc -sourcepath src -subpackages org - javadoc -d "build/javadoc" \ - -sourcepath src -subpackages org - - jar -cvf "${pkgname}.jar" -C "build/classes" . + jar -cvf "$pkgname.jar" -C build/classes . } package() { - cd "${srcdir}/${pkgname}-${pkgname}-site-${pkgver}/${pkgname}" + cd "$srcdir/$pkgname-$pkgname-site-$pkgver/$pkgname" # 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} \ - pom.xml \ - "${pkgname}.jar" \ - "${pkgname}-${pkgver}.jar" - - ln -s "/usr/share/java/${pkgname}-${pkgver}.jar" \ - "${pkgdir}/usr/share/java/${pkgname}.jar" + export DESTDIR=$pkgdir + jh mvn-install $pkgname $pkgname $pkgver \ + pom.xml "$pkgname.jar" "$pkgname.jar" + + ln -s "/usr/share/java/$pkgname.jar" \ + "$pkgdir/usr/share/java/$pkgname-$pkgver.jar" } |