1 # Maintainer: Christopher Daley <crdaley (at) gmail.com
6 pkgdesc="A cross-platform 3D game interpreter which allows you to play LucasArts' LUA-based 3D adventures"
8 url="http://residual.sourceforge.net"
13 _gitroot="https://github.com/residual/residual.git"
18 msg "Connecting to GIT server..."
20 if [ -d ${_gitname} ]; then
21 cd ${_gitname} && git pull origin
23 git clone --depth 1 ${_gitroot}
26 # # Get/update jreen if enabled
27 # # FIXME: make an external package for jreen (it's default by now)
28 # cd ${srcdir}/${_gitname}/thirdparty
29 # if [[ $(find -type d -empty|grep jreen|wc -l) -eq 1 ]]; then
30 # msg "Obtaining jreen..."
31 # cd ${srcdir}/${_gitname}
32 # git submodule init && git submodule update
34 # msg "Updating jreen..."
38 msg "GIT checkout done or server timeout"
39 msg "Starting build..."
41 rm -rf ${srcdir}/${_gitname}-build
42 cp -r ${srcdir}/${_gitname} ${srcdir}/${_gitname}-build
43 cd ${srcdir}/${_gitname}-build
45 ./configure --prefix=/usr
50 cd ${srcdir}/${_gitname}-build
51 make DESTDIR=${pkgdir} install