1 # Contributor: Antti Oja <antti.bofh@gmail.com>
6 pkgdesc="A free 3D real-time-strategy (RTS) game engine. Development branch."
8 url="http://springrts.com/"
10 provides=('spring' 'spring-git')
11 depends=('openal' 'glew' 'boost' 'devil' 'libvorbis' 'freetype2' 'sdl')
12 makedepends=('git' 'cmake' 'p7zip')
13 conflicts=('spring' 'spring-svn')
17 _gitroot="git://github.com/spring/spring.git"
22 msg "Connecting to github.com GIT server...."
24 if [ -d ${srcdir}/$_gitname ] ; then
25 cd $_gitname && git pull origin
26 msg "The local files are updated."
31 msg "GIT checkout done or server timeout"
33 msg "Creating build directory"
34 if [ -d "${srcdir}/$_gitname-build" ]; then rm -rf "${srcdir}/$_gitname-build"; fi
35 cp -R "${srcdir}/$_gitname" "${srcdir}/$_gitname-build"
37 msg "Starting make..."
38 cd "${srcdir}/$_gitname-build"
39 cmake -DCMAKE_INSTALL_PREFIX=/usr . || return 1
42 -DCMAKE_INSTALL_PREFIX=/usr \
45 # -DUSE_GML_DEBUG=true \
46 -DDATADIR=share/spring .
49 make DESTDIR=$pkgdir install || return 1
51 install -d $pkgdir/etc/spring
52 echo '$HOME/.spring' > $pkgdir/etc/spring/datadir