updated on Thu Jan 26 00:18:00 UTC 2012
[aur-mirror.git] / libsge-git / PKGBUILD
blobb25ad72d9178f5d24e83052d388398a523e05674
1 # Maintainer: Philipp Middendorf <pmidden@gmx.net>
2 pkgname=libsge-git
3 pkgver=20110613
4 pkgrel=1
5 pkgdesc="An easy to use game engine written in C++"
6 arch=('i686' 'x86_64')
7 url="http://freundlich.github.com/spacegameengine"
8 license=('LGPL')
9 groups=()
10 depends=('libfcppt-git' 'libmizuiro-git' 'libawl-git' 'boost>=1.46.0' 'libxi>=1.4.1' 'libx11>=1.4.1' 'libgl' 'freetype2' 'glew' 'cegui' 'libogg' 'libvorbis' 'libpng' 'openal' 'bullet' 'libxrandr')
11 makedepends=('git' 'cmake>=2.6')
12 options=()
13 install=
14 source=()
15 noextract=()
16 md5sums=() #generate with 'makepkg -g'
18 _download_from_git()
20   msg "Downloading $1..."
21   if [ -d $1 ]; then
22     cd $1;
23     if ! git pull origin; then
24         msg "Pulling $1 didn't work"
25         cd ..;
26         false;
27     else
28       msg "Done with $1."
29       cd ..
30     fi;
31   else
32     msg "Doesn't exist yet, cloning..."
33     git clone $2 $1 --depth 1 
34     msg "Done with $1"
35   fi;
38 build() {
39   cd "$srcdir"
41   _download_from_git 'spacegameengine' 'git://github.com/freundlich/spacegameengine.git'
43   msg "Starting make..."
45   cd "$srcdir/spacegameengine"
47   rm -rf build;
48   mkdir build;
49   cd build;
50   cmake\
51         -D ENABLE_EXAMPLES:=OFF\
52         -D ENABLE_TEST:=OFF\
53         -D ENABLE_XF86VMODE:=OFF\
54         -D CMAKE_INSTALL_PREFIX:="/usr"\
55         ..;
56   make -j3
59 package() {
60   cd "$srcdir/spacegameengine/build"
61   make DESTDIR="$pkgdir" install
62