1 # Maintainer: Jaroslav Lichtblau <dragonlord@aur.archlinux.org>
6 pkgdesc="The latest version of a turn-based strategy game on a fantasy world."
8 url="http://www.wesnoth.org/"
10 depends=('boost' 'fribidi' 'lua' 'sdl' 'sdl_ttf' 'sdl_net' 'sdl_mixer' 'sdl_image')
11 makedepends=('openssh' 'python' 'scons' 'subversion')
12 conflicts=('wesnoth' 'wesnoth-devel')
14 replaces=('wesnoth-cvs')
19 _svntrunk=svn://svn.gna.org/svn/wesnoth/trunk
24 msg "Connecting to gna SVN server..."
25 msg "Checking out $_svnmod"
27 if [ -d $_svnmod/.svn ]; then
28 (cd $_svnmod && svn up -r $pkgver)
30 svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
33 msg "SVN checkout done or server timeout"
34 msg "Setting up build environment..."
36 rm -rf ${srcdir}/$_svnmod-build
37 cp -r ${_svnmod} ${_svnmod}-build || return 1
41 scons prefsdir=.wesnoth-svn prefix=/usr debug=yes || return 1
42 scons destdir=${pkgdir} install || return 1