1 # Contributor: Cedric Chabanois <cchabanois@gmail.com>
5 pkgdesc="Set of utilities for manipulating Java class files. Currently it includes 'Java Class Info' and 'Java Decompiler'"
7 url="http://jclazz.sourceforge.net"
10 depends=('java-runtime')
17 source=(http://downloads.sourceforge.net/jclazz/$pkgname-$pkgver-linux.tar.bz2)
19 md5sums=('ee58252bfea2948ced291455c7930098')
22 cd "$startdir/src/$pkgname-$pkgver"
23 mkdir -p ${pkgdir}/usr/share/jclazz
24 mkdir -p ${pkgdir}/usr/bin
25 cp -R * ${pkgdir}/usr/share/jclazz
26 cat >${pkgdir}/usr/bin/jclazz-gui << EOC
27 java -jar /usr/share/jclazz/bin/jclazz-gui.jar
29 cat >${pkgdir}/usr/bin/jclazz-decomp << EOC
30 LIB_PATH=/usr/share/jclazz/bin
31 java -classpath \$LIB_PATH/jclazz-core.jar:\$LIB_PATH/jclazz-decomp.jar ru.andrew.jclazz.decompiler.ClassDecompiler \$@
33 cat >${pkgdir}/usr/bin/jclazz-infoj << EOC
34 LIB_PATH=/usr/share/jclazz/bin
35 java -classpath \$LIB_PATH/jclazz-core.jar ru.andrew.jclazz.core.infoj.InfoJ \$@
37 chmod 0755 ${pkgdir}/usr/bin/jclazz-gui
38 chmod 0755 ${pkgdir}/usr/bin/jclazz-decomp
39 chmod 0755 ${pkgdir}/usr/bin/jclazz-infoj