2010-12-12 12:03:20 +08:00
|
|
|
pkgname=freeciv
|
2016-11-26 20:33:58 +08:00
|
|
|
pkgver=2.5.6
|
2016-01-31 08:32:29 +08:00
|
|
|
pkgrel=1
|
2010-12-12 12:03:20 +08:00
|
|
|
pkgdesc="Multiplayer clone of Civilization™."
|
2014-02-14 20:50:05 +08:00
|
|
|
arch=('x86_64')
|
2010-12-12 12:03:20 +08:00
|
|
|
url="http://www.freeciv.org/"
|
|
|
|
license=('GPL2')
|
2016-08-20 03:21:58 +08:00
|
|
|
depends=('bzip2' 'freetype2' 'readline' 'sqlite3' 'curl' 'libltdl' 'sdl' 'sdl_mixer' 'qt5-base')
|
|
|
|
makedepends=('qt5-tools')
|
2010-12-12 12:03:20 +08:00
|
|
|
changelog=ChangeLog
|
2012-03-07 19:00:46 +08:00
|
|
|
categories=('games')
|
2015-03-20 16:47:24 +08:00
|
|
|
backup=('etc/freeciv/database.lua')
|
2011-01-21 23:12:51 +08:00
|
|
|
source=(http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.bz2)
|
2016-11-26 20:33:58 +08:00
|
|
|
sha256sums=('cfadc23eec11a5a8ae74a7d3719eb126026137f0700da065367fd55cbab6999b')
|
2010-12-12 12:03:20 +08:00
|
|
|
|
|
|
|
build() {
|
2011-01-21 23:12:51 +08:00
|
|
|
cd $srcdir/$pkgname-$pkgver
|
2015-03-20 12:43:40 +08:00
|
|
|
export MOCCMD="/usr/lib/qt5/bin/moc"
|
2016-08-20 03:21:58 +08:00
|
|
|
export CXXFLAGS="$CXXFLAGS -std=c++11"
|
2011-01-03 11:04:52 +08:00
|
|
|
./configure \
|
|
|
|
--prefix=/usr \
|
|
|
|
--mandir=/usr/share/man \
|
2015-03-20 12:43:40 +08:00
|
|
|
--sysconfdir=/etc \
|
|
|
|
--enable-client=qt \
|
|
|
|
--enable-fcdb=sqlite3 \
|
|
|
|
--enable-aimodules \
|
2011-01-03 11:04:52 +08:00
|
|
|
--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
|
|
|
|
2015-03-20 16:47:24 +08:00
|
|
|
# Link to Qt client.
|
2011-08-22 18:27:42 +08:00
|
|
|
cd $pkgdir/usr/bin
|
2015-03-20 16:47:24 +08:00
|
|
|
ln -s freeciv-qt freeciv
|
2010-12-12 12:03:20 +08:00
|
|
|
}
|