Files
OpenRA/packaging/linux/pkgbuild/PKGBUILD
2010-05-12 16:38:22 +12:00

53 lines
1.2 KiB
Bash

# Contributor: Matthew Bowra-Dean <matthew@ijw.co.nz>
pkgname=openra-git
pkgver=20100511
pkgrel=1
pkgdesc="Open Source rebuild of the Red Alert game engine using Mono/OpenGL."
arch=(any)
url="http://open-ra.org"
license=('GPL3')
groups=()
depends=('mono' 'openal' 'mesa' 'nvidia-cg-toolkit' 'freetype2' 'sdl')
makedepends=('git' 'unzip' 'wget')
optdepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=openra.install
source=()
noextract=()
md5sums=()
_gitroot="git://github.com/chrisforbes/OpenRA.git"
_gitname="OpenRA"
_gittag="playtest-$pkgver"
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 make..."
rm -rf "$srcdir/$_gitname-build"
git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
cd "$srcdir/$_gitname-build"
git checkout $_gittag
#
# BUILD HERE
#
make prefix="/usr" || return 1
make prefix="/usr" DESTDIR="$pkgdir" install
}