updated on Wed Jan 18 16:10:53 UTC 2012
[aur-mirror.git] / freeciv-sdl / PKGBUILD
blobea15757c75705cabd418d704bd5598280579b967
1 # Contributor: Jonathan Wiersma <arch aur at jonw dot org>
2 pkgname=freeciv-sdl
3 _realname=freeciv
4 pkgver=2.3.0
5 pkgrel=1
6 pkgdesc="A multiuser clone of the famous Microprose game of Civilization - SDL Client"
7 url="http://www.freeciv.org/"
8 arch=('i686' 'x86_64')
9 depends=(bzip2 sdl sdl_image sdl_mixer readline freetype2)
10 options=('!libtool')
11 provides=("freeciv=$pkgver")
12 conflicts=('freeciv' 'freeciv-gtk')
13 license=('GPL')
14 install="freeciv.install"
15 source=("http://downloads.sourceforge.net/project/$_realname/Freeciv%20${pkgver:0:3}/$pkgver/$_realname-$pkgver.tar.bz2")
17 build() {
18   cd $srcdir/$_realname-$pkgver || return 1
19   ./configure --prefix=/usr --mandir=/usr/share/man --enable-client=sdl --enable-shared || return 1
20   make || return 1
21   sed -e 's/gtk2/sdl/g' client/freeciv.desktop > client/freeciv-sdl.desktop || return 1
24 package() {
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')