From c35cb9bfafc3dd7c7294aeb1a6e0b0d8c0562b0f Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Mon, 5 Mar 2012 00:25:01 -0500 Subject: 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 --- libre/java-asm2/PKGBUILD | 74 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 74 insertions(+) create mode 100644 libre/java-asm2/PKGBUILD (limited to 'libre/java-asm2') 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 + +_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') -- cgit v1.2.3-54-g00ecf