From 659ed1759060bb4bf572f162d15785eeba6c0172 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Fri, 19 Oct 2012 16:58:06 -0400 Subject: add a non-working java/java-jarjar/PKGBUILD-1.4 --- java/java-jarjar/PKGBUILD-1.4 | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 java/java-jarjar/PKGBUILD-1.4 (limited to 'java') diff --git a/java/java-jarjar/PKGBUILD-1.4 b/java/java-jarjar/PKGBUILD-1.4 new file mode 100644 index 000000000..f0ebe9270 --- /dev/null +++ b/java/java-jarjar/PKGBUILD-1.4 @@ -0,0 +1,41 @@ +# Maintainer: Luke Shumaker + +_pkgname=jarjar +pkgname=java-jarjar +pkgver=1.4 +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-asm4' 'junit' 'maven' 'jh') +source=("https://${_pkgname}.googlecode.com/files/${_pkgname}-src-${pkgver}.zip") + +mksource() { + cd "$srcdir/$_pkgname-$pkgver" + rm -f src/test/*.{class,jar} + rm -f lib/*.jar +} + +build() { + cd "$srcdir/$_pkgname-$pkgver" + eval `jh mksource` + + ln -s /usr/share/java/asm-4.jar lib/asm-4.0.jar + ln -s /usr/share/java/asm-commons-4.jar lib/asm-commons-4.0.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 + + 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" +} + +sha1sums=('803ad79cf429faeb4d767b2fb45d84bbc904ea04') -- cgit v1.2.3