### this file is sourced not run
PKGVER=2.5.0
PKGBUILD=1
PKGARCH=x86_64

# source: james
TARBALL=freeciv-2.5.0.tar.bz2
MD5SUM=8a61ecd986853200326711446c573f1b
SRC_URL=http://downloads.sourceforge.net/freeciv/$TARBALL
BUNDLE=

SLACKREQ='gtk2 sqlite3 libSDL-mixer'
SLACKDESC='freeciv: freeciv 2.5.0 (Empire-building strategy game)
freeciv: 
freeciv: Freeciv (Free Civilization) is a Free and Open Source empire-building 
freeciv: strategy game inspired by the history of human civilization. The game 
freeciv: commences in prehistory and your mission is to lead your tribe from 
freeciv: the Stone Age to the Space Age...
freeciv: 
freeciv: http://freeciv.wikia.com/wiki/Main_Page
freeciv: 
freeciv: 
freeciv: 
'

### default pkg_download
### default pkg_prepare
### default pkg_package
### build
pkg_build() {
	cd /tmp/freeciv*
	
	export LDFLAGS=-L/usr/$LIBDIR
	./configure $CONFFLAGS --enable-sdl-mixer --enable-fcdb=sqlite3 \
		--disable-static --enable-shared &&
	echo '#define ALWAYS_ROOT 1' >> fc_config.h && # enable running as root
	
	make $MAKEFLAGS && make install &&
	pkg_build_slackdesc
}


