summaryrefslogtreecommitdiff
path: root/libre/java-bcel/PKGBUILD
diff options
context:
space:
mode:
authorOmar Vega Ramos <ovruni@gnu.org.pe>2016-11-01 13:45:28 -0500
committerOmar Vega Ramos <ovruni@gnu.org.pe>2016-11-01 13:45:28 -0500
commitc2284d61c9f70886202b58d37ed3f18633cd0388 (patch)
tree5b6e5b28bdb0977ed2be6b401c399caee38565cf /libre/java-bcel/PKGBUILD
parentf2c4d66e015d89b1a223fa37b4c90903fa245c24 (diff)
downloadabslibre-c2284d61c9f70886202b58d37ed3f18633cd0388.tar.gz
abslibre-c2284d61c9f70886202b58d37ed3f18633cd0388.tar.bz2
abslibre-c2284d61c9f70886202b58d37ed3f18633cd0388.zip
java-bcel-6.0-1.parabola1: updating version
Diffstat (limited to 'libre/java-bcel/PKGBUILD')
-rw-r--r--libre/java-bcel/PKGBUILD53
1 files changed, 24 insertions, 29 deletions
diff --git a/libre/java-bcel/PKGBUILD b/libre/java-bcel/PKGBUILD
index c5de83f87..bb2875008 100644
--- a/libre/java-bcel/PKGBUILD
+++ b/libre/java-bcel/PKGBUILD
@@ -1,52 +1,47 @@
# Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe>
_libname=bcel
pkgname=java-${_libname}
-pkgver=5.2
-pkgrel=2.parabola1
+pkgver=6.0
+pkgrel=1.parabola1
pkgdesc="Java library to analyze, create, and manipulate (binary) Java class files"
arch=('any')
-url="http://commons.apache.org/bcel/"
+url='https://commons.apache.org/proper/commons-bcel/'
license=('APACHE')
-depends=('java-runtime-headless')
-makedepends=('apache-ant' 'jakarta-regexp' 'jh' 'junit')
-source=("http://archive.apache.org/dist/jakarta/${_libname}/source/${_libname}-${pkgver}-src.tar.gz"
- "http://repo.maven.apache.org/maven2/org/apache/${_libname}/${_libname}/${pkgver}/${_libname}-${pkgver}.pom"
- "java-bcel-iso_8859_1_encoding.patch")
-md5sums=('905b7e718e30e7ca726530ecf106e532'
- 'a691cc2bb8fe12cec388c7edf3ab27f0'
- 'adc403be36c101ba78119d27f1e230d7')
+depends=('java-runtime')
+makedepends=('java-environment' 'jh')
+source=("http://archive.apache.org/dist/jakarta/${_libname}/source/${_libname}-$pkgver-src.tar.gz")
+sha256sums=('b963b9f0614f17de40da1de265e44476b80a8cc8a36c07a3acfe48f603306958')
prepare() {
- cd "${srcdir}/${_libname}-${pkgver}"
- patch -Np1 -i ../java-bcel-iso_8859_1_encoding.patch
+ cd "$srcdir/${_libname}-$pkgver-src"
+ mkdir -p build/classes
}
build() {
- cd "${srcdir}/${_libname}-${pkgver}"
- # "-Dbuild.sysclasspath=only" prevents ant from downloading regexp
- export ANT_OPTS=-Dfile.encoding=iso-8859-1
- ant clean jar javadoc \
- -Dbuild.sysclasspath=only \
- -lib "/usr/share/java/regexp.jar"
+ cd "$srcdir/${_libname}-$pkgver-src"
+ javac -d build/classes -encoding UTF-8 \
+ $(find src/main/java -name \*.java)
+ javadoc -sourcepath src/main/java -d build/javadoc \
+ -encoding UTF-8 -subpackages org
+
+ jar -cvf "${_libname}.jar" -C build/classes .
}
package() {
- cd "${srcdir}/${_libname}-${pkgver}"
+ cd "$srcdir/${_libname}-$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 "dist/docs/api" "${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 "org.apache.${_libname}" ${_libname} ${pkgver} \
- "${srcdir}/${_libname}-${pkgver}.pom" \
- "target/${_libname}-${pkgver}.jar" \
- "${_libname}.jar"
+ export DESTDIR=$pkgdir
+ jh mvn-install "org.apache.${_libname}" ${_libname} $pkgver \
+ pom.xml "${_libname}.jar" "${_libname}.jar"
ln -s "/usr/share/java/${_libname}.jar" \
- "${pkgdir}/usr/share/java/${_libname}-${pkgver}.jar"
+ "$pkgdir/usr/share/java/${_libname}-$pkgver.jar"
}