diff options
author | Nicolás Reynolds <fauno@kiwwwi.com.ar> | 2012-03-23 19:47:42 -0300 |
---|---|---|
committer | Nicolás Reynolds <fauno@kiwwwi.com.ar> | 2012-03-23 19:47:42 -0300 |
commit | c4cc142235d7d77327c2a53d9efb2750b1ec80bf (patch) | |
tree | 41446fa0833a3783d24b6bd12c64336f845e6032 /libre/java-asm2/PKGBUILD | |
parent | 5ddafb1e55d18275d3f16e9faa3e9da788b54389 (diff) | |
parent | b1b9debcc7f6756d83dbac37806021de007cf083 (diff) |
Merge branch 'master' of ssh://gparabola/abslibre
Conflicts:
libre/linux-libre/PKGBUILD
Diffstat (limited to 'libre/java-asm2/PKGBUILD')
-rw-r--r-- | libre/java-asm2/PKGBUILD | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/libre/java-asm2/PKGBUILD b/libre/java-asm2/PKGBUILD new file mode 100644 index 000000000..4853d79c0 --- /dev/null +++ b/libre/java-asm2/PKGBUILD @@ -0,0 +1,76 @@ +# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net> + +_pkgname=asm +pkgname=java-asm2 +_pkgver=2 +pkgver=2.2.3 +pkgrel=4 +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") + +_M2_LOCALREPO='/usr/share/maven/repository' +_ow_util_ant_tasks='/usr/share/java/ow_util_ant_tasks.jar' +_m2_packages=( + asm + asm-analysis + asm-attrs + asm-commons + asm-tree + asm-util + asm-xml + asm-all) + +build() { + cd "$srcdir/$_pkgname-$pkgver" + + mkdir -p test/lib + + echo "objectweb.ant.tasks.path $_ow_util_ant_tasks" >> build.properties + ant dist + + # This will make package() easier: + cd output/dist/lib + ln -s all/* . +} + +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 + install -d "$pkgdir"/usr/share/java/asm + for pkg in "${_m2_packages[@]}"; do + dir="$_M2_LOCALREPO"/asm/$pkg/$pkgver + # Create the Maven directory + install -d "$pkgdir$dir" + # Install the files + cp $pkg-$pkgver.* "$pkgdir$dir" + # Symlink them to /usr/share/java + ln -s "$dir"/$pkg-$pkgver.jar "$pkgdir"/usr/share/java/asm/ + ln -s asm/$pkg-$pkgver.jar "$pkgdir"/usr/share/java/$pkg-$_pkgver.jar + done + + # Install a README file about the -all files + cd "$srcdir/$_pkgname-$pkgver" + install -m644 output/dist/lib/all/README.txt \ + "$pkgdir"/usr/share/java/asm/README-$pkgver.txt +} + +md5sums=('7a92c87bf067925685cf68dcc0dd8998') |