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

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

SLACKREQ='gtk2 sqlite3 libSDL-mixer'
SLACKDESC="freeciv: freeciv $PKGVER (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
}


