summaryrefslogtreecommitdiff
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD20
1 files changed, 19 insertions, 1 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 93c6ae4..a8e9d56 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -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