1 # Contributor: Jonathan Wiersma <arch aur at jonw dot org>
6 pkgdesc="A multiuser clone of the famous Microprose game of Civilization - SDL Client"
7 url="http://www.freeciv.org/"
9 depends=(bzip2 sdl sdl_image sdl_mixer readline freetype2)
11 provides=("freeciv=$pkgver")
12 conflicts=('freeciv' 'freeciv-gtk')
14 install="freeciv.install"
15 source=("http://downloads.sourceforge.net/project/$_realname/Freeciv%20${pkgver:0:3}/$pkgver/$_realname-$pkgver.tar.bz2")
18 cd $srcdir/$_realname-$pkgver || return 1
19 ./configure --prefix=/usr --mandir=/usr/share/man --enable-client=sdl --enable-shared || return 1
21 sed -e 's/gtk2/sdl/g' client/freeciv.desktop > client/freeciv-sdl.desktop || return 1
25 cd $srcdir/$_realname-$pkgver || return 1
26 make DESTDIR=$pkgdir install || return 1
27 install -m644 client/freeciv-sdl.desktop "$pkgdir/usr/share/applications/freeciv.desktop" || return 1
30 md5sums=('70fd4285f2da7d41bdadac43458e62c9')