summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjc_gargma <jc_gargma@iserlohn-fortress.net>2018-07-09 12:59:38 -0700
committerjc_gargma <jc_gargma@iserlohn-fortress.net>2018-07-09 12:59:38 -0700
commit24cefb4c8776999848c3d3523f322c238cab2cb7 (patch)
tree3dcdf4f122651997d872240d5cc2d9906ea58230
downloadfreeciv-qt-24cefb4c8776999848c3d3523f322c238cab2cb7.tar.xz
Initial commit
-rw-r--r--PKGBUILD37
-rw-r--r--lua52_compat.patch13
2 files changed, 50 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 0000000..2fc0e22
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,37 @@
+# $Id$
+# Maintainer: Eric BĂ©langer <eric@archlinux.org>
+
+pkgname=freeciv-qt
+pkgver=2.5.11
+pkgrel=1
+pkgdesc="A multiuser clone of the famous Microprose game of Civilization"
+arch=('x86_64')
+url="http://www.freeciv.org/"
+license=('GPL')
+depends=('qt5-base' 'sdl_mixer' 'lua52' 'sqlite' 'curl' 'libtool')
+makedepends=('python')
+conflicts=('freeciv')
+provides=('freeciv')
+backup=('etc/freeciv/database.lua')
+source=(https://downloads.sourceforge.net/sourceforge/freeciv/freeciv-${pkgver}.tar.bz2
+ lua52_compat.patch)
+sha256sums=('4c9c526952fe977cb4b302b8ccf75798fd066c6dde670f72f677fe4964259aad'
+ '85aff8a154b44c3c337c549c3ab9204429eaa627835b18b74146e801dd99a71e')
+
+prepare() {
+ cd freeciv-${pkgver}
+ patch -p1 -i "$srcdir"/lua52_compat.patch
+ autoreconf -vi
+}
+
+build() {
+ cd freeciv-${pkgver}
+ ./configure --prefix=/usr --sysconfdir=/etc --enable-shared --enable-sys-lua \
+ --enable-client=qt --enable-fcmp=qt --enable-fcdb=sqlite3 --enable-aimodules
+ make
+}
+
+package() {
+ cd freeciv-${pkgver}
+ make DESTDIR="${pkgdir}" install
+}
diff --git a/lua52_compat.patch b/lua52_compat.patch
new file mode 100644
index 0000000..759578f
--- /dev/null
+++ b/lua52_compat.patch
@@ -0,0 +1,13 @@
+diff --git a/configure.ac b/configure.ac
+index 5cfc1d1..1c66051 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -1263,7 +1263,7 @@ esac], [sys_lua=false])
+ dnl There's wide divergence on what the pkg-config file for Lua is called
+ dnl See http://lua-users.org/lists/lua-l/2008-09/msg00184.html
+ if test "x$sys_lua" = "xtrue" || test "x$sys_lua" = "xtest" ; then
+- PKG_CHECK_MODULES([LUA], [lua5.2], [sys_lua=true],
++ PKG_CHECK_MODULES([LUA], [lua52], [sys_lua=true],
+ [PKG_CHECK_MODULES([LUA], [lua-5.2], [sys_lua=true],
+ [PKG_CHECK_MODULES([LUA], [lua >= 5.2 lua < 5.3], [sys_lua=true],
+ [if test "x$sys_lua" = "xtrue" ; then