summaryrefslogtreecommitdiff
path: root/pcr/proguard/PKGBUILD
diff options
context:
space:
mode:
authorDavid P <megver83@parabola.nu>2018-07-17 15:54:45 -0400
committerDavid P <megver83@parabola.nu>2018-07-17 15:54:45 -0400
commit9a28dd66e57ef1e1c74b6df5b3db947d67bde908 (patch)
tree2bb6cf91f42cbbd1d240088e2fc9b27e2d56cc0f /pcr/proguard/PKGBUILD
parentd424f0813c7bee07cdea2b6863540e1b84abfb0d (diff)
downloadabslibre-9a28dd66e57ef1e1c74b6df5b3db947d67bde908.tar.gz
abslibre-9a28dd66e57ef1e1c74b6df5b3db947d67bde908.tar.bz2
abslibre-9a28dd66e57ef1e1c74b6df5b3db947d67bde908.zip
addpkg: pcr/proguard
Just because it's a dependency of android-sdk Signed-off-by: David P <megver83@parabola.nu>
Diffstat (limited to 'pcr/proguard/PKGBUILD')
-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
+}