diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2012-03-05 00:25:01 -0500 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2012-03-05 00:25:01 -0500 |
commit | c35cb9bfafc3dd7c7294aeb1a6e0b0d8c0562b0f (patch) | |
tree | 8d7266cc45b343309fe6d14d905a4b905d405f81 /libre/java-asm2/PKGBUILD | |
parent | 061da5af0a448dfba14f2a4a042828174616bbd2 (diff) | |
download | abslibre-c35cb9bfafc3dd7c7294aeb1a6e0b0d8c0562b0f.tar.gz abslibre-c35cb9bfafc3dd7c7294aeb1a6e0b0d8c0562b0f.tar.bz2 abslibre-c35cb9bfafc3dd7c7294aeb1a6e0b0d8c0562b0f.zip |
mv libre/java-asm{,3}; add libre/java-asm2 libre/java-ow-util-ant-tasks
java-asm* makedepend on java-ow-util-ant-tasks, java-ow-utl-ant-tasks
makedepends on java-asm2
Diffstat (limited to 'libre/java-asm2/PKGBUILD')
-rw-r--r-- | libre/java-asm2/PKGBUILD | 74 |
1 files changed, 74 insertions, 0 deletions
diff --git a/libre/java-asm2/PKGBUILD b/libre/java-asm2/PKGBUILD new file mode 100644 index 000000000..9f42e977d --- /dev/null +++ b/libre/java-asm2/PKGBUILD @@ -0,0 +1,74 @@ +# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net> + +_pkgname=asm +pkgname=java-asm2 +pkgver=2.2.3 +pkgrel=1 +pkgdesc="An all purpose Java bytecode manipulation and analysis framework." +arch=('any') +url="http://asm.ow2.org/" +license=('custom:BSD3') +depends=('java-runtime') +makedepends=( + apache-ant + java-ow-util-ant-tasks +) +source=("http://download.forge.objectweb.org/$_pkgname/$_pkgname-$pkgver.tar.gz") + +build() { + cd "$srcdir/$_pkgname-$pkgver" + + mkdir -p test/lib + echo 'objectweb.ant.tasks.path /usr/share/java/ow_util_ant_tasks.jar' >> build.properties + ant dist +} + +mvn-install() { + group=$1 + pkg=$2 + ver=$3 + + dir="$pkgdir"/usr/share/maven/repository/$group/$pkg/$ver + install -d "$dir" + cp $pkg-$pkgver.* "$dir" +} + +package() { + cd "$srcdir/$_pkgname-$pkgver" + + # Install license file + install -Dm644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + + # Install documentation + cd output/dist + install -d "$pkgdir/usr/share/doc/$pkgname" + cp -r doc/javadoc/user "$pkgdir/usr/share/doc/$pkgname/javadoc" + cp -r examples "$pkgdir/usr/share/doc/$pkgname/examples" + + # Install Apache Maven modules + cd lib + mvn-install asm asm $pkgver + mvn-install asm asm-analysis $pkgver + mvn-install asm asm-attrs $pkgver + mvn-install asm asm-commons $pkgver + mvn-install asm asm-tree $pkgver + mvn-install asm asm-util $pkgver + mvn-install asm asm-xml $pkgver + cd all + mvn-install asm asm-all $pkgver + + # Synlink Maven modules to /usr/share/java + install -d "$pkgdir"/usr/share/java/asm + cd "$pkgdir" + find usr/share/maven/repository/asm \ + -type f -name '*.jar' -printf '/%p\n' | while read jar; do + ln -s "$jar" "$pkgdir"/usr/share/java/asm + done + + # Put the finishing touches on /usr/share/java + ln -s "asm/asm-$pkgver.jar" "$pkgdir"/usr/share/java/asm-2.jar + cd "$srcdir/$_pkgname-$pkgver" + install -m644 output/dist/lib/all/README.txt "$pkgdir"/usr/share/java/asm/README-$pkgver.txt +} + +md5sums=('7a92c87bf067925685cf68dcc0dd8998') |