# Maintainer: jc_gargma # Maintainer (Arch): Eric BĂ©langer # # I maintain this because: # Arch version uses gtk # Arch version uses http # Arch version lacks additional optimization and hardening flags _pkgname=freeciv pkgname=freeciv-qt pkgver=2.6.0 pkgrel=3.3 pkgdesc="A multiuser clone of the famous Microprose game of Civilization" arch=('x86_64' 'aarch64') url="https://www.freeciv.org/" license=('GPL') depends=('qt5-base' 'sdl2_mixer' 'lua' 'sqlite' 'curl') makedepends=('python') conflicts=('freeciv') provides=('freeciv') backup=('etc/freeciv/database.lua') source=(https://downloads.sourceforge.net/sourceforge/${_pkgname}/${_pkgname}-${pkgver}.tar.bz2) sha1sums=('19b5181e3e9e40b31332c79a2226fbcc3706a9c2') build() { cd ${_pkgname}-${pkgver} export CFLAGS="$CFLAGS -O3 -fstack-protector-all -flto=4 -fPIC" export CXXFLAGS="$CXXFLAGS -O3 -fstack-protector-all -flto=4 -fPIC" ./configure --prefix=/usr --sysconfdir=/etc --enable-shared --enable-sys-lua \ --enable-client=qt --enable-fcmp=qt --enable-fcdb=sqlite3 --enable-aimodules make } package() { cd ${_pkgname}-${pkgver} make DESTDIR="${pkgdir}" install }