diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2013-06-22 20:58:40 -0600 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2013-06-22 20:58:40 -0600 |
commit | f30b40f8720f95777b428fa7a6b1c99babc636e8 (patch) | |
tree | 4ca53f43a522a31f69c36f442846a064979baee6 /java/java-asm2/common.sh | |
parent | 488d8214991c66dfb5382a27f8a54cf990d63755 (diff) | |
download | abslibre-f30b40f8720f95777b428fa7a6b1c99babc636e8.tar.gz abslibre-f30b40f8720f95777b428fa7a6b1c99babc636e8.tar.bz2 abslibre-f30b40f8720f95777b428fa7a6b1c99babc636e8.zip |
rebuild java-asm{2,3}
Diffstat (limited to 'java/java-asm2/common.sh')
-rw-r--r-- | java/java-asm2/common.sh | 65 |
1 files changed, 0 insertions, 65 deletions
diff --git a/java/java-asm2/common.sh b/java/java-asm2/common.sh deleted file mode 100644 index ef4547696..000000000 --- a/java/java-asm2/common.sh +++ /dev/null @@ -1,65 +0,0 @@ -# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net> - -_pkgname=asm -pkgname=java-asm${pkgver%%.*} -pkgdesc="An all purpose Java bytecode manipulation and analysis framework." -url="http://asm.ow2.org/" -license=('custom:BSD3') - -arch=('any') -depends=('java-runtime') -makedepends=( - apache-ant - java-ow-util-ant-tasks - jh -) -source=("libre://$pkgname-$pkgver.tar.gz") -mksource=("http://download.forge.objectweb.org/$_pkgname/$_pkgname-$pkgver.tar.gz") - -_distdir="$_pkgname-$pkgver/output/dist" -_ow_util_ant_tasks='/usr/share/java/ow_util_ant_tasks.jar' - -build() { - cd "$srcdir/$_pkgname-$pkgver" - - echo "objectweb.ant.tasks.path $_ow_util_ant_tasks" >> build.properties - ant dist - - # This will make package() easier: - cd "$srcdir/$_distdir/lib" - ln -sf all/* . -} - -package() { - # Install license file - cd "$srcdir/$_pkgname-$pkgver" - install -Dm644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE" - - # Install documentation - cd "$srcdir/$_distdir" - 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 the README about the -all files - cd "$srcdir/$_distdir/lib" - install -Dm644 README.txt \ - "$pkgdir"/usr/share/java/$_pkgname/README-$pkgver.txt - - # Install Maven artifacts - export DESTDIR=$pkgdir - for artifact in $(printf '%s\n' *.pom|sed 's/-[0-9.]*\.pom$//'); do - if [[ -f $artifact-$pkgver.jar ]]; then - # This artifact has a jar file - jh mvn-install $_pkgname $artifact $pkgver $artifact-$pkgver.{pom,jar} - # Symlink them to /usr/share/java - ln -s "$(jh mvn-basename asm $artifact $pkgver).jar" \ - "$pkgdir"/usr/share/java/$_pkgname/ - ln -s $_pkgname/$artifact-$pkgver.jar \ - "$pkgdir"/usr/share/java/$artifact-${pkgver%%.*}.jar - else - # This artifact is just a pom - jh mvn-install $_pkgname $artifact $pkgver $artifact-$pkgver.pom - fi - done -} |