updated on Thu Jan 12 00:00:55 UTC 2012
[aur-mirror.git] / samhaxe-svn / PKGBUILD
blob7006e2bbbafc6442ede8f3ac0cb7b24da92a9fcb
1 # -*- shell-script -*-
3 # $Id$
5 # Contributor: Vsevolod Balashov <vsevolod@balashov.name>
7 name=samhaxe
8 pkgname=$name-svn
9 pkgver=23
10 pkgrel=1
11 pkgdesc="a flash resource assembly tool similar to swfmill"
12 arch=('i686' 'x86_64')
13 url="http://mindless-labs.com/trac/$name"
14 license=('MIT')
15 depends=('neko' 'imagemagick' 'freetype2')
16 makedepends=('apache-ant' 'gcc' 'haxe' 'subversion')
17 options=('!strip')
19 source=('config.ant')
20 md5sums=('5827e261ea7ef353de1f9689395887af')
22 _svntrunk="http://mindless-labs.com/svn/$name/trunk"
23 _svnmod=$name
25 # before build export env like below (as described in haxe install)
27 # HAXE_HOME=/opt/haxe
28 # HAXE_LIBRARY_PATH=/opt/haxe/std:.
30 build() {
31   cd $srcdir
33   msg "Connecting to $_svntrunk SVN server...."
34   if [ -d $_svnmod/.svn ]; then
35     cd $_svnmod && svn up -r $pkgver || return 1
36   else
37     svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod || return 1
38   fi
40   msg "SVN checkout done"
41   msg "Starting make..."
43   cd $srcdir/$name
44   ln -sf $startdir/config.ant ./
45   ant || return 1
47   cd $srcdir/$name/bin
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/