summaryrefslogtreecommitdiff
path: root/extra/freeciv/PKGBUILD
blob: 6b5586369adb7271bd03f19e5fd7afe8f603552e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# $Id: PKGBUILD 201416 2013-12-10 20:59:46Z eric $
# Maintainer: Eric Bélanger <eric@archlinux.org>

pkgname=freeciv
pkgver=2.4.1
pkgrel=1
pkgdesc="A multiuser clone of the famous Microprose game of Civilization"
arch=('i686' 'x86_64' 'mips64el')
url="http://www.freeciv.org/"
license=('GPL')
depends=('gtk2' 'sdl_mixer' 'lua51' 'sqlite' 'curl' 'libltdl')
backup=('etc/freeciv/database.lua')
install=freeciv.install
source=(http://downloads.sourceforge.net/sourceforge/${pkgname}/${pkgname}-${pkgver}.tar.bz2)
sha1sums=('16fddc97c91e99b31f23fc80746b3454f8f55f78')

build() {
  cd ${pkgname}-${pkgver}
  ./configure --prefix=/usr --sysconfdir=/etc --enable-shared --enable-sys-lua \
    --enable-client=gtk2 --enable-fcdb=sqlite3 --enable-aimodules
  make
}

package() {
  cd ${pkgname}-${pkgver}
  make DESTDIR="${pkgdir}" install
}