updated on Wed Jan 25 20:08:56 UTC 2012
[aur-mirror.git] / freeciv-svn / PKGBUILD
blob268b823ff05890a4f108f044857101df863b5e4b
1 # Contributor: Slash <demodevil5[at]yahoo[dot]com>
3 pkgname=freeciv-svn
4 pkgver=12994 
5 pkgrel=1
6 pkgdesc="A multiuser clone of the famous Microprose game of Civilization"
7 url="http://www.freeciv.org/"
8 license="GPL"
9 arch=('i686' 'x86_64')
10 depends=('gtk2' 'sdl_image' 'sdl_mixer' 'freetype2' 'readline')
11 makedepends=('subversion')
12 conflicts=('freeciv')
13 provides=('freeciv')
14 source=()
15 md5sums=()
17 # Valid Values: gtk, sdl, xaw3d, xaw, win32, ftwl
18 _freecivclient=sdl
20 _svntrunk=http://svn.gna.org/svn/freeciv/trunk
21 _svnmod=freeciv
23 build() {
24         cd $startdir/src
26         # Get Latest Source Code
27         svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
28         cd $_svnmod
30         msg "SVN checkout done or server timeout"
31         msg "Starting make..."
33         # Compile Source
34         ./autogen.sh
35         ./configure --prefix=/usr --with-readline --enable-client=$_freecivclient
36         make || return 1
37         make DESTDIR=$startdir/pkg/ install