updated on Sat Jan 21 16:18:39 UTC 2012
[aur-mirror.git] / eos-git / PKGBUILD
blobf14ad12066bb77ce995f375b6eec879b61a3ee1d
1 # Maintainer: Florian Léger <florian6 dot leger at laposte dot net>
3 pkgname=eos-git
4 pkgver=20120107
5 pkgrel=1
6 pkgdesc="A reimplementation of BioWare's Aurora engine (and derivatives)"
7 arch=('i686' 'x86_64')
8 url="https://github.com/DrMcCoy/eos"
9 license=('GPL')
10 depends=('boost-libs' 'mesa' 'sdl' 'freetype2' 'openal' 'libmad' 'libogg' 'libvorbis' 'faad2' 'xvidcore')
11 makedepends=('git' 'boost')
13 _gitroot="https://github.com/DrMcCoy/eos.git"
14 _gitname="eos"
16 build() {
17   cd "$srcdir"
18   msg "Connecting to GIT server...."
20   if [ -d $_gitname ] ; then
21     cd $_gitname && git pull origin
22     msg "The local files are updated."
23   else
24     git clone $_gitroot $_gitname
25   fi
27   msg "GIT checkout done or server timeout"
28   msg "Starting make..."
30   rm -rf "$srcdir/$_gitname-build"
31   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
32   cd "$srcdir/$_gitname-build"
34   ./autogen.sh --prefix=/usr
35   make
38 package() {
39   cd "$srcdir/$_gitname-build"
40   make DESTDIR="$pkgdir" install