diff options
| author | jc_gargma <jc_gargma@iserlohn-fortress.net> | 2025-09-24 21:49:03 -0700 |
|---|---|---|
| committer | jc_gargma <jc_gargma@iserlohn-fortress.net> | 2025-09-24 21:49:03 -0700 |
| commit | 69d7dc80703634592ef69ba6e8e1c170ddeb1782 (patch) | |
| tree | b3248dc34c327348068da225ce34f8b22365bc93 /PKGBUILD | |
| parent | Updated to 3.2.0 (diff) | |
| download | freeciv-qt-69d7dc80703634592ef69ba6e8e1c170ddeb1782.tar.xz | |
Update depends and add tests.
Diffstat (limited to 'PKGBUILD')
| -rw-r--r-- | PKGBUILD | 20 |
1 files changed, 19 insertions, 1 deletions
@@ -15,7 +15,14 @@ arch=('x86_64' 'aarch64') url="http://www.freeciv.org/" license=('GPL') options=('lto') -depends=('qt6-base' 'sdl2_mixer' 'lua' 'sqlite' 'curl') +depends=( + 'qt6-base' + 'sdl2-compat' + 'sdl2_mixer' + 'lua' + 'sqlite' + 'curl' +) makedepends=('python') conflicts=('freeciv') provides=('freeciv') @@ -24,6 +31,11 @@ source=(https://downloads.sourceforge.net/sourceforge/${_pkgname}/${_pkgname}-${ sha512sums=('03d4bdf0bece4858c5ab802fc54fa6b58cf72b5526baef04642aff4f048210304629cfe416f4d2c8550f234c563c21ab83af5f8e77bb50fc9f9b17ab8f9e21ce') b2sums=('3ff24f0051208b69accf46a1647882f06148777deb9ef42381970a12a332f3d7eb4c6d298bc04f7c0dffebec8ad04ec6213e91abb3f2d9b8f0679077df0bca9a') +prepare() { + cd ${_pkgname}-${pkgver} + ./autogen.sh +} + build() { cd ${_pkgname}-${pkgver} export CFLAGS="$CFLAGS -O3 -fstack-protector-all -fPIC" @@ -36,10 +48,16 @@ build() { --enable-client=qt \ --enable-fcmp=qt \ --enable-fcdb=sqlite3 \ + --enable-sdl-mixer=sdl2 \ --enable-aimodules make } +check() { + cd ${pkgname}-${pkgver} + make check +} + package() { cd ${_pkgname}-${pkgver} make DESTDIR="${pkgdir}" install |
