1 # Maintainer: Marco Yuen <marcoy@gmail.com>
5 pkgdesc="A graphical Java debugger front-end"
7 url="http://code.google.com/p/jswat/"
9 depends=('java-environment' 'bash')
10 makedepend=('unzip' 'sed')
13 source=(http://jswat.googlecode.com/files/jswat-4.5-installer.jar \
15 md5sums=('5fed3cb9f088b7fbc709e9922396ca59'
16 '866e2d5368f4df629437ed66ac4f2013')
19 mkdir -p $pkgdir/opt/jswat
20 unzip $srcdir/jswat.zip -d $pkgdir/opt/jswat
21 sed -i 's|C:\\java\\jdk1.6.0|'${JAVA_HOME}'|' $pkgdir/opt/jswat/etc/jswat.conf
22 sed -i 's|${HOME}\\.jswat|${HOME}/.jswat|' $pkgdir/opt/jswat/etc/jswat.conf
23 chmod 755 $pkgdir/opt/jswat/bin/jswat
24 chmod 755 $pkgdir/opt/jswat/bin/jpdalaunch
26 rm -f $pkgdir/opt/jswat/bin/*.exe
28 mkdir -p $pkgdir/usr/bin/
29 install -m 755 $srcdir/jswat $pkgdir/usr/bin