mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-12-08 23:03:46 +00:00
33 lines
1,006 B
Bash
33 lines
1,006 B
Bash
# $Id: PKGBUILD 3527 2009-10-05 08:51:53Z spupykin $
|
|
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
|
|
|
|
pkgname=proguard
|
|
pkgver=4.4
|
|
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=(http://downloads.sourceforge.net/proguard/proguard$pkgver.tar.gz)
|
|
md5sums=('18b8d00951be8d9f85a813c67a46b8ec')
|
|
|
|
build() {
|
|
cd "$startdir/src/$pkgname$pkgver/lib"
|
|
|
|
mkdir -p $startdir/pkg/usr/bin && \
|
|
mkdir -p $startdir/pkg/usr/share/proguard && \
|
|
install -D -m0644 proguardgui.jar proguard.jar retrace.jar $startdir/pkg/usr/share/proguard/ || return 1
|
|
|
|
cat >$startdir/pkg/usr/bin/proguardgui <<EOF
|
|
#!/bin/sh
|
|
exec java -jar /usr/share/proguard/proguardgui.jar \$*
|
|
EOF
|
|
chmod 0755 $startdir/pkg/usr/bin/proguardgui
|
|
|
|
cat >$startdir/pkg/usr/bin/proguard <<EOF
|
|
#!/bin/sh
|
|
exec java -jar /usr/share/proguard/proguard.jar \$*
|
|
EOF
|
|
chmod 0755 $startdir/pkg/usr/bin/proguard
|
|
}
|