mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 02:22:13 +08:00
39 lines
962 B
Bash
39 lines
962 B
Bash
pkgname=freeciv
|
|
pkgver=2.6.0
|
|
pkgrel=1
|
|
pkgdesc="Multiplayer clone of Civilization™."
|
|
arch=('x86_64')
|
|
url="http://www.freeciv.org/"
|
|
license=('GPL2')
|
|
depends=('bzip2' 'freetype2' 'readline' 'sqlite3' 'curl' 'libltdl' 'lua' 'sdl2' 'sdl2_mixer' 'qt5-base')
|
|
makedepends=('qt5-tools')
|
|
categories=('games')
|
|
backup=('etc/freeciv/database.lua')
|
|
source=(https://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.bz2)
|
|
sha256sums=('7c20399198d6c7d846fed9a69b02e01134ae5340a3ae0f99d1e38063ade6c999')
|
|
|
|
build() {
|
|
cd $srcdir/$pkgname-$pkgver
|
|
export MOCCMD="/usr/lib/qt5/bin/moc"
|
|
./configure \
|
|
--prefix=/usr \
|
|
--mandir=/usr/share/man \
|
|
--sysconfdir=/etc \
|
|
--enable-client=qt \
|
|
--enable-fcdb=sqlite3 \
|
|
--enable-aimodules \
|
|
--enable-shared
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd $srcdir/$pkgname-$pkgver
|
|
|
|
install -dm 755 $pkgdir/etc
|
|
make DESTDIR=$pkgdir install
|
|
|
|
# Link to Qt client.
|
|
cd $pkgdir/usr/bin
|
|
ln -s freeciv-qt freeciv
|
|
}
|