1 # Maintainer: Linus Sjögren <thelinx@unreliablepollution.net>
2 # Contributor: Andrzej Giniewicz < gginiu@gmail.com >
6 pkgdesc="An open-source 2D game engine which uses the versatile Lua scripting language to create dynamic gaming experiences."
8 url="http://love2d.org/"
10 depends=('luajit2' 'physfs' 'freetype2' 'devil' 'mpg123' 'openal' 'libvorbis' 'libmodplug')
11 makedepends=('mercurial')
14 _hgroot="http://bitbucket.org/rude"
20 cp -rf $_hgrepo $_hgrepo-build
23 msg "Updating version information"
24 head -c 15 configure.in > configure.in.tmp
25 echo " [`hg log -l1 --template '{node|short}'`-`date +%Y%m%d`])" >> configure.in.tmp
26 tail -n +2 configure.in >> configure.in.tmp
27 cp configure.in.tmp configure.in
30 msg "Updating compiled modules"
32 luajit2 ./auto.lua audio boot graphics
35 msg "Generating makefiles"
36 sh platform/unix/automagic
37 ./configure --prefix=/usr --with-luajit LDFLAGS=""
44 cd "$srcdir/$_hgrepo-build"
45 make DESTDIR="$pkgdir" install
51 # vim:set ts=2 sw=2 et: