1 # Maintainer: Paul Burton <paulburton89@gmail.com>
5 pkgdesc="An implementation of Java for Mono."
7 url="http://www.ikvm.net/"
8 license=('custom:GPLv2')
11 makedepends=(java-environment nant pkgconfig)
12 source=(http://www.frijters.net/openjdk6-b21-stripped.zip
15 md5sums=('b5e835edb3a9f139333a8f110e703dec'
16 '8d9fc2977ac79b09c29ba402dcda6471'
17 'b25dcece089a9fe6e7e516265835e89a')
18 _cvsroot=":pserver:anonymous@ikvm.cvs.sourceforge.net:/cvsroot/ikvm"
23 msg "Connecting to $_cvsmod.sourceforge.net CVS server...."
24 if [ -d $_cvsmod/CVS ]; then
28 cvs -z3 -d $_cvsroot co -D $pkgver -f $_cvsmod
32 msg "CVS checkout done or server timeout"
33 msg "Starting make..."
35 rm -rf "$srcdir/$_cvsmod-build"
36 cp -r "$srcdir/$_cvsmod" "$srcdir/$_cvsmod-build"
37 cd "$srcdir/$_cvsmod-build"
39 ln -sf /usr/lib/mono/2.0/ICSharpCode.SharpZipLib.dll bin/ICSharpCode.SharpZipLib.dll
46 cd "$srcdir/$_cvsmod-build"
48 mkdir -p $pkgdir/usr/lib/ikvm
49 cp bin/libikvm-native.so $pkgdir/usr/lib/ikvm/
51 mkdir -p $pkgdir/usr/bin
53 for dllFile in IKVM.*.dll
55 cp -v $dllFile $pkgdir/usr/lib/ikvm/
56 cp -v $srcdir/ikvm.dll.config $pkgdir/usr/lib/ikvm/$dllFile.config
60 cp -v $exeFile $pkgdir/usr/lib/ikvm/
61 base=`basename $exeFile .exe`
62 wrapper=$pkgdir/usr/bin/$base
64 env mono /usr/lib/ikvm/$exeFile \"\$@\"
70 mkdir -p $pkgdir/usr/lib/pkgconfig
71 cp -v $srcdir/ikvm.pc.in $pkgdir/usr/lib/pkgconfig/ikvm.pc
72 sed -i "s|@VERSION@|$pkgver|" $pkgdir/usr/lib/pkgconfig/ikvm.pc
74 install -m755 -d ${pkgdir}/usr/share/licenses/${pkgname}
75 install -m644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/
78 # vim:set ts=2 sw=2 et: