desktop/freeciv/PKGBUILD

41 lines
1014 B
Bash
Raw Normal View History

2010-12-12 12:03:20 +08:00
pkgname=freeciv
2016-08-20 03:21:58 +08:00
pkgver=2.5.5
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')
source=(http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.bz2)
2016-08-20 03:21:58 +08:00
sha256sums=('5622f2142637057f7e47b1eda764c4e131222fab4d5bb42cd59fbd58ba3db1d4')
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"
2016-08-20 03:21:58 +08:00
export CXXFLAGS="$CXXFLAGS -std=c++11"
./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
}