updated on Thu Jan 12 20:00:29 UTC 2012
[aur-mirror.git] / love-hg / PKGBUILD
blob847e483de224345f51f89af123e8e9dcf667fe45
1 # Maintainer: Linus Sjögren <thelinx@unreliablepollution.net>
2 # Contributor: Andrzej Giniewicz < gginiu@gmail.com >
3 pkgname=love-hg
4 pkgver=878
5 pkgrel=1
6 pkgdesc="An open-source 2D game engine which uses the versatile Lua scripting language to create dynamic gaming experiences."
7 arch=(i686 x86_64)
8 url="http://love2d.org/"
9 license=('zlib')
10 depends=('luajit2' 'physfs' 'freetype2' 'devil' 'mpg123' 'openal' 'libvorbis' 'libmodplug')
11 makedepends=('mercurial')
12 options=(!strip)
14 _hgroot="http://bitbucket.org/rude"
15 _hgrepo=love
17 build() {
18   cd "$srcdir"
19   rm -rf $_hgrepo-build
20   cp -rf $_hgrepo $_hgrepo-build
21   cd $_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
28   rm configure.in.tmp
30   msg "Updating compiled modules"
31   cd src/scripts
32   luajit2 ./auto.lua audio boot graphics
33   cd ../..
35   msg "Generating makefiles"
36   sh platform/unix/automagic
37   ./configure --prefix=/usr --with-luajit LDFLAGS=""
39   msg "Building"
40   make
43 package() {
44   cd "$srcdir/$_hgrepo-build"
45   make DESTDIR="$pkgdir" install
47   cd "$pkgdir"/usr/bin
48   mv love love-hg
51 # vim:set ts=2 sw=2 et: