From 3dedd7d413edfba2fdd6d491c863c64632846122 Mon Sep 17 00:00:00 2001 From: Omar Vega Ramos Date: Mon, 4 Jul 2016 10:49:09 -0500 Subject: proguard: add new package to [libre] --- libre/proguard/PKGBUILD | 62 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 libre/proguard/PKGBUILD (limited to 'libre/proguard/PKGBUILD') diff --git a/libre/proguard/PKGBUILD b/libre/proguard/PKGBUILD new file mode 100644 index 000000000..096fbc518 --- /dev/null +++ b/libre/proguard/PKGBUILD @@ -0,0 +1,62 @@ +# $Id$ +# Maintainer (Arch): Sergej Pupykin +# Maintainer: Omar Vega Ramos + +pkgname=proguard +pkgver=5.2.1 +pkgrel=1.parabola1 +pkgdesc="free Java class file shrinker, optimizer, obfuscator, and preverifier" +arch=(any) +url="http://proguard.sourceforge.net/" +license=('GPL2') +depends=('java-runtime') +makedepends=('apache-ant' 'gradle' 'jh') +source=(http://downloads.sourceforge.net/proguard/proguard$pkgver.tar.gz + proguard-fix_build.patch) +md5sums=('e94cf25b7947a0d3bbe7410f87f87c58' + 'e6ca4ce58dc2ccdd860203e37687e82a') + +prepare() { + cd "$srcdir/$pkgname$pkgver" + rm -rv lib/*.jar + rm -rv {docs,examples} + patch -Np1 -i "${srcdir}/proguard-fix_build.patch" +} + +build() { + cd "$srcdir/$pkgname$pkgver" + ant basic anttask gradletask \ + -f buildscripts/build.xml \ + -Dgradle.home=/usr/share/java/gradle +} + +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 <$pkgdir/usr/bin/proguard <