From 24cefb4c8776999848c3d3523f322c238cab2cb7 Mon Sep 17 00:00:00 2001 From: jc_gargma Date: Mon, 9 Jul 2018 12:59:38 -0700 Subject: Initial commit --- PKGBUILD | 37 +++++++++++++++++++++++++++++++++++++ lua52_compat.patch | 13 +++++++++++++ 2 files changed, 50 insertions(+) create mode 100644 PKGBUILD create mode 100644 lua52_compat.patch 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 + +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 -- cgit v1.2.1