pkgname=openxcom-git pkgver=20120913 pkgrel=2 pkgdesc="Open-source engine for the original XCOM: Enemy Unknown. Needs the official data files separately." arch=('i686' 'x86_64') url="http://openxcom.org/" license=('GPL') groups=() depends=('sdl' 'sdl_mixer' 'sdl_gfx' 'yaml-cpp0.3' 'mesa' 'glu') makedepends=('git' 'cmake' 'doxygen') optdepends=('timidity++: music output') provides=() conflicts=('openxcom') replaces=() backup=() options=() install=openxcom-git.install source=() noextract=() md5sums=() _gitroot=git://github.com/SupSuper/OpenXcom.git _gitname=OpenXcom build() { cd "$srcdir" msg "Connecting to GIT server...." if [[ -d "$_gitname" ]]; then cd "$_gitname" && git pull origin msg "The local files are updated." else git clone "$_gitroot" "$_gitname" fi msg "GIT checkout done or server timeout" msg "Starting build..." rm -rf "$srcdir/$_gitname-build" git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build" cd "$srcdir/$_gitname-build" ./autogen.sh ./configure cmake -D DATADIR=/usr/share/openxcom -D CMAKE_INSTALL_PREFIX=/usr . } package() { cd "$srcdir/$_gitname-build" make -j 4 DESTDIR="$pkgdir/" install } # vim:set ts=2 sw=2 et: