2010-12-12 12:03:20 +08:00
|
|
|
#
|
|
|
|
# Games Packages for Chakra, part of chakra-project.org
|
|
|
|
#
|
2011-12-09 06:00:26 +08:00
|
|
|
# Maintainer: Adrián Chaves Fernández (Gallaecio) <adriyetichaves@gmail.com>
|
2010-12-12 12:03:20 +08:00
|
|
|
|
|
|
|
pkgname=freeciv
|
2013-12-01 00:40:29 +08:00
|
|
|
pkgver=2.4.1
|
2013-02-17 06:18:30 +08:00
|
|
|
pkgrel=1
|
2010-12-12 12:03:20 +08:00
|
|
|
pkgdesc="Multiplayer clone of Civilization™."
|
|
|
|
arch=('i686' 'x86_64')
|
|
|
|
url="http://www.freeciv.org/"
|
|
|
|
license=('GPL2')
|
2013-01-28 00:19:28 +08:00
|
|
|
depends=('bzip2' 'freetype2' 'readline' 'sdl' 'sdl_image' 'sdl_mixer')
|
2010-12-12 12:03:20 +08:00
|
|
|
changelog=ChangeLog
|
2012-03-07 19:00:46 +08:00
|
|
|
categories=('games')
|
2011-01-21 23:12:51 +08:00
|
|
|
source=(http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.bz2)
|
2013-12-01 00:40:29 +08:00
|
|
|
md5sums=('9f280f320be0d597a29efe040f1b0025')
|
2010-12-12 12:03:20 +08:00
|
|
|
|
|
|
|
build() {
|
2011-01-21 23:12:51 +08:00
|
|
|
cd $srcdir/$pkgname-$pkgver
|
2011-01-03 11:04:52 +08:00
|
|
|
./configure \
|
|
|
|
--prefix=/usr \
|
|
|
|
--mandir=/usr/share/man \
|
|
|
|
--enable-client=sdl \
|
|
|
|
--enable-shared
|
2010-12-12 12:03:20 +08:00
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2011-01-21 23:12:51 +08:00
|
|
|
cd $srcdir/$pkgname-$pkgver
|
2011-08-22 18:27:42 +08:00
|
|
|
|
2011-01-03 11:04:52 +08:00
|
|
|
install -dm 755 $pkgdir/etc
|
2010-12-12 12:03:20 +08:00
|
|
|
make DESTDIR=$pkgdir install
|
2011-08-22 18:27:42 +08:00
|
|
|
|
|
|
|
# Link to SDL client.
|
|
|
|
cd $pkgdir/usr/bin
|
|
|
|
ln -s freeciv-sdl freeciv
|
2010-12-12 12:03:20 +08:00
|
|
|
}
|