5 # Contributor: Vsevolod Balashov <vsevolod@balashov.name>
11 pkgdesc="a flash resource assembly tool similar to swfmill"
12 arch=('i686' 'x86_64')
13 url="http://mindless-labs.com/trac/$name"
15 depends=('neko' 'imagemagick' 'freetype2')
16 makedepends=('apache-ant' 'gcc' 'haxe' 'subversion')
20 md5sums=('5827e261ea7ef353de1f9689395887af')
22 _svntrunk="http://mindless-labs.com/svn/$name/trunk"
25 # before build export env like below (as described in haxe install)
28 # HAXE_LIBRARY_PATH=/opt/haxe/std:.
33 msg "Connecting to $_svntrunk SVN server...."
34 if [ -d $_svnmod/.svn ]; then
35 cd $_svnmod && svn up -r $pkgver || return 1
37 svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod || return 1
40 msg "SVN checkout done"
41 msg "Starting make..."
44 ln -sf $startdir/config.ant ./
49 install -d $pkgdir/etc
50 install -m 644 samhaxe.conf.xml $pkgdir/etc/
51 sed -i -e 's/<modules path=".*/<modules path="\/usr\/lib\/samhaxe\/modules">/' $pkgdir/etc/samhaxe.conf.xml
53 install -d $pkgdir/usr/bin
54 install -m 755 SamHaXe $pkgdir/usr/bin/samhaxe
56 install -d $pkgdir/usr/lib/samhaxe/modules/native
57 install -m 644 modules/*.n $pkgdir/usr/lib/samhaxe/modules/
58 install -m 755 modules/native/*.ndll $pkgdir/usr/lib/samhaxe/modules/native/