1 # Contributor: Jaroslaw Rosiek <jaroslaw.rosiek@interia.pl>
5 pkgdesc="Assembler for the Java Virtual Machine"
6 url="http://jasmin.sourceforge.net/"
9 makedepends=('apache-ant')
10 arch=('i686' 'x86_64')
13 http://sourceforge.net/projects/jasmin/files/jasmin/jasmin-2.4/jasmin-2.4.zip/download \
14 http://jasmin.sourceforge.net/xt.html \
15 jasmin-$pkgver.patch \
22 cd $startdir/src/$pkgname-$pkgver || return 1
23 patch -p1 < $startdir/src/jasmin-$pkgver.patch || return 1
25 # Build and install jasmin.jar
26 ant jasmin || return 1
27 install -D -m644 $pkgname.jar $startdir/pkg/usr/share/java/jasmin.jar || return 1
29 # Install documentation
30 install -d $startdir/pkg/usr/share/jasmin/ || return 1
31 cp docs $startdir/pkg/usr/share/jasmin/ -R || return 1
32 chmod u=rwX,g=rX,o=rX $startdir/pkg/usr/share/jasmin -R || return 1
34 cd $startdir/src || return 1
36 # Install additional documentation
37 install -D -m644 xt.html $startdir/pkg/usr/share/jasmin/docs || return 1
39 # Install startup script
40 install -D -m755 jasmin $startdir/pkg/usr/bin/jasmin || return 1
43 md5sums=('e646257c6cdb4faf00aae096fb1949c1'
44 'ad2b0b5b31b0aeba924ddd9aa885f9ad'
45 '878983d7719df19d7cce883543c0e2a3'
46 '0235254f9d02229e6bb05ba0bca5e598')