updated on Sat Jan 14 00:11:12 UTC 2012
[aur-mirror.git] / jswat / PKGBUILD
blob18ce49abc9981be839d00dba054b56bd21cec0b6
1 # Maintainer: Marco Yuen <marcoy@gmail.com>
2 pkgname=jswat
3 pkgver=4.5
4 pkgrel=1
5 pkgdesc="A graphical Java debugger front-end"
6 arch=('i686' 'x86_64')
7 url="http://code.google.com/p/jswat/"
8 license=('CDDL')
9 depends=('java-environment' 'bash')
10 makedepend=('unzip' 'sed')
11 options=(!strip)
13 source=(http://jswat.googlecode.com/files/jswat-4.5-installer.jar \
14         jswat)
15 md5sums=('5fed3cb9f088b7fbc709e9922396ca59'
16          '866e2d5368f4df629437ed66ac4f2013')
18 build() {
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