summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pcr/proguard/PKGBUILD37
1 files changed, 37 insertions, 0 deletions
diff --git a/pcr/proguard/PKGBUILD b/pcr/proguard/PKGBUILD
new file mode 100644
index 000000000..2c9e56ec6
--- /dev/null
+++ b/pcr/proguard/PKGBUILD
@@ -0,0 +1,37 @@
+# Maintainer (AUR): Bleuzen <supgesu at gmail dot com>
+# Maintainer: David P. <megver83@parabola.nu>
+
+pkgname=proguard
+_pkgver=6.0
+pkgver=$_pkgver.3
+pkgrel=1
+pkgdesc="Free Java class file shrinker, optimizer, obfuscator, and preverifier"
+arch=(any)
+url="http://proguard.sourceforge.net/"
+license=('GPL2')
+depends=('java-runtime')
+source=(https://downloads.sourceforge.net/project/proguard/proguard/$_pkgver/proguard$pkgver.tar.gz)
+sha256sums=('db175575313d11eb75a3ab68c079123d2787529b63c5cb434b1f653ececb3e48')
+
+package() {
+ cd "$srcdir/$pkgname$pkgver/lib"
+
+ mkdir -p "$pkgdir"/usr/bin
+ mkdir -p "$pkgdir"/usr/share/proguard
+ install -D -m0644 proguardgui.jar proguard.jar retrace.jar "$pkgdir"/usr/share/proguard/
+
+ cat >"$pkgdir"/usr/bin/proguardgui <<EOF
+#!/bin/sh
+exec java -jar /usr/share/proguard/proguardgui.jar \$*
+EOF
+ chmod 0755 "$pkgdir"/usr/bin/proguardgui
+
+ cat >"$pkgdir"/usr/bin/proguard <<EOF
+#!/bin/sh
+exec java -jar /usr/share/proguard/proguard.jar \$*
+EOF
+ chmod 0755 "$pkgdir"/usr/bin/proguard
+
+ # FS#36268
+ ln -s . "$pkgdir"/usr/share/proguard/lib
+}