desktop/freeciv/PKGBUILD

42 lines
1.0 KiB
Bash
Raw Normal View History

2015-03-20 16:47:24 +08:00
# Maintainer: Jeff Huang <s8321414[at]gmail[dot]com>
# Contributer: Adrián Chaves Fernández (Gallaecio) <adriyetichaves@gmail.com>
2010-12-12 12:03:20 +08:00
pkgname=freeciv
2015-03-20 12:43:40 +08:00
pkgver=2.5.0
2015-03-20 16:47:24 +08:00
pkgrel=2
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')
2015-03-20 12:43:40 +08:00
depends=('bzip2' 'freetype2' 'readline' 'qt5-base' 'sqlite3' 'curl' 'libltdl')
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')
source=(http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.bz2)
2015-03-20 12:43:40 +08:00
md5sums=('8a61ecd986853200326711446c573f1b')
2010-12-12 12:03:20 +08:00
build() {
cd $srcdir/$pkgname-$pkgver
2015-03-20 12:43:40 +08:00
export MOCCMD="/usr/lib/qt5/bin/moc"
./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 \
--enable-shared
2010-12-12 12:03:20 +08:00
make
}
package() {
cd $srcdir/$pkgname-$pkgver
2011-08-22 18:27:42 +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
}