blob: 2c9e56ec6cb299aa1e80af8ff083226111eb3d56 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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
}
|