diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2012-10-19 16:57:57 -0400 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2012-10-19 16:57:57 -0400 |
commit | 250f36709515f452ea256cfe2ceb4b770dfdb49e (patch) | |
tree | b2969ee52abb11f55d2ba885a5db0b718ada8317 /java/java-jarjar/PKGBUILD | |
parent | a565b1de49060d5839f0f053761d81c4671270f4 (diff) | |
download | abslibre-250f36709515f452ea256cfe2ceb4b770dfdb49e.tar.gz abslibre-250f36709515f452ea256cfe2ceb4b770dfdb49e.tar.bz2 abslibre-250f36709515f452ea256cfe2ceb4b770dfdb49e.zip |
add java/java-jarjar 1.2
Diffstat (limited to 'java/java-jarjar/PKGBUILD')
-rw-r--r-- | java/java-jarjar/PKGBUILD | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/java/java-jarjar/PKGBUILD b/java/java-jarjar/PKGBUILD new file mode 100644 index 000000000..8d1d1120b --- /dev/null +++ b/java/java-jarjar/PKGBUILD @@ -0,0 +1,49 @@ +# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net> + +# jarjar 1.2 is old, but is the last version that used java-asm3 +# java-asm4 is not packaged + +_pkgname=jarjar +pkgname=java-jarjar +pkgver=1.2 +_pkgrev=132 # v1.2 wasn't tagged, but this is clearly it +pkgdesc="Java static linker (instead of the normal dynamic linking)" +url="https://code.google.com/p/jarjar/" +license=('Apache2') + +pkgrel=1 +arch=('any') +depends=('java-runtime') +makedepends=('apache-ant' 'java-asm3' 'junit' 'maven' 'jh') +source=("svn+http://jarjar.googlecode.com/svn/trunk/jarjar#revision=$_pkgrev") + +mksource() { + cd "$srcdir/$_pkgname" + rm -f src/test/*.{class,jar} + rm -f lib/*.jar +} + +build() { + cd "$srcdir/$_pkgname" + eval `jh mksource` + + ln -s /usr/share/java/asm-3.jar lib/asm-3.3.1.jar + ln -s /usr/share/java/asm-commons-3.jar lib/asm-commons-3.3.1.jar + ln -s /usr/share/java/junit.jar lib/junit-4.8.1.jar + ln -s /opt/maven/lib/maven-plugin-api-*.jar lib/maven-plugin-api.jar + + ln -s /opt/apache-ant/lib/ant.jar lib/ + + export CLASSPATH=/usr/share/java/asm-3.jar + echo 'includeantruntime false' > build.properties + ant jar +} + +package() { + cd "$srcdir/$_pkgname" + install -d "$pkgdir/usr/share/java/$_pkgname" + install -D "dist/$_pkgname-$pkgver.jar" "$pkgdir/usr/share/java/$_pkgname" + ln -s "$_pkgname/$_pkgname-$pkgver.jar" "$pkgdir/usr/share/java/$_pkgname.jar" +} + +md5sums=('SKIP') |