updated on Thu Jan 12 04:00:44 UTC 2012
[aur-mirror.git] / residualvm-git / PKGBUILD
blob0cbe1309e5d6e08d856d23f99966a69e0c87e319
1 # Maintainer: Joel Teichroeb <joel (at) teichroeb.net>
2  
3 pkgname=residualvm-git
4 pkgver=20120110
5 pkgrel=1
6 pkgdesc="A cross-platform 3D game interpreter which allows you to play LucasArts' LUA-based 3D adventures"
7 arch=('i686' 'x86_64')
8 url="http://www.residualvm.org"
9 license=(LGPL)
10 depends=('sdl')
11 makedepends=('git')
13 _gitroot="https://github.com/residualvm/residualvm.git"
14 _gitname="residualvm"
16 build() {
17   cd ${srcdir}
18   msg "Connecting to GIT server..."
20   if [ -d ${_gitname} ]; then
21     cd ${_gitname} && git pull origin
22   else
23     git clone --depth 1 ${_gitroot}
24   fi
26   msg "GIT checkout done or server timeout"
27   msg "Starting build..."
29   rm -rf ${srcdir}/${_gitname}-build
30   cp -r ${srcdir}/${_gitname} ${srcdir}/${_gitname}-build
31   cd ${srcdir}/${_gitname}-build
33   ./configure --prefix=/usr
34   make
37 package() {
38   cd ${srcdir}/${_gitname}-build
39   make DESTDIR=${pkgdir} install