blob: c69b1578a3e716e4745ed0b723753cc98844733f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
# Maintainer: jc_gargma <jc_gargma@iserlohn-fortress.net>
# Maintainer (Arch): Eric BĂ©langer <eric@archlinux.org>
# # 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=3.0.6
pkgrel=1
pkgdesc="A multiuser clone of the famous Microprose game of Civilization"
arch=('x86_64' 'aarch64')
url="http://www.freeciv.org/"
license=('GPL')
options=('lto')
depends=('qt5-base' 'sdl2_mixer' 'lua53' 'sqlite' 'curl')
makedepends=('python')
conflicts=('freeciv')
provides=('freeciv')
backup=('etc/freeciv/database.lua')
source=(https://downloads.sourceforge.net/sourceforge/${_pkgname}/${_pkgname}-${pkgver}.tar.xz)
sha512sums=('437e3b51b67bfde4cd07bdbfa28363f770bdf13bfed0d4abb5756b8f62a9d41f04428f10b7e7610598ba3be2a3798f223d3b72bb2fab26cef58561ece1023f3f')
b2sums=('a551d560917e9e3af15696b03fe893d9819571d32d240467579c65332eb87d55cdc7b637050695e148dbec36e47589144c0281a2dfebdc4a119a2288b800f51a')
build() {
cd ${_pkgname}-${pkgver}
export CFLAGS="$CFLAGS -O3 -fstack-protector-all -fPIC"
export CXXFLAGS="$CXXFLAGS -O3 -fstack-protector-all -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
}
|