PKGBUILD 884 Bytes
Newer Older
chaves's avatar
chaves committed
1 2 3
#
# Games Packages for Chakra, part of chakra-project.org
#
4
# Maintainer: Adrián Chaves Fernández (Gallaecio) <adriyetichaves@gmail.com>
chaves's avatar
chaves committed
5 6

pkgname=freeciv
7 8
pkgver=2.3.4
pkgrel=1
chaves's avatar
chaves committed
9 10 11 12
pkgdesc="Multiplayer clone of Civilization™."
arch=('i686' 'x86_64')
url="http://www.freeciv.org/"
license=('GPL2')
13
depends=('bzip2' 'freetype2' 'readline' 'sdl' 'sdl_image' 'sdl_mixer')
chaves's avatar
chaves committed
14
changelog=ChangeLog
Giuseppe's avatar
Giuseppe committed
15
categories=('games')
16
source=(http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.bz2)
17
md5sums=('2a49c417ffedd54cf648adf1ddf707a9')
chaves's avatar
chaves committed
18 19

build() {
20
  cd $srcdir/$pkgname-$pkgver
21 22 23 24 25
  ./configure \
    --prefix=/usr \
    --mandir=/usr/share/man \
    --enable-client=sdl \
    --enable-shared
chaves's avatar
chaves committed
26 27 28 29
  make
}

package() {
30
  cd $srcdir/$pkgname-$pkgver
31

32
  install -dm 755 $pkgdir/etc
chaves's avatar
chaves committed
33
  make DESTDIR=$pkgdir install
34 35 36 37

  # Link to SDL client.
  cd $pkgdir/usr/bin
  ln -s freeciv-sdl freeciv
chaves's avatar
chaves committed
38
}