Date: Sunday, July 22, 2018 @ 06:55:49 Author: arojas Revision: 362769
extra2community: Moving freeciv from extra to community Added: freeciv/ freeciv/repos/ freeciv/trunk/ freeciv/trunk/PKGBUILD freeciv/trunk/lua52_compat.patch --------------------+ PKGBUILD | 35 +++++++++++++++++++++++++++++++++++ lua52_compat.patch | 13 +++++++++++++ 2 files changed, 48 insertions(+) Added: freeciv/trunk/PKGBUILD =================================================================== --- freeciv/trunk/PKGBUILD (rev 0) +++ freeciv/trunk/PKGBUILD 2018-07-22 06:55:49 UTC (rev 362769) @@ -0,0 +1,35 @@ +# $Id$ +# Maintainer: Eric Bélanger <[email protected]> + +pkgname=freeciv +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=('gtk3' 'sdl_mixer' 'lua52' 'sqlite' 'curl' 'libtool') +makedepends=('python') +backup=('etc/freeciv/database.lua') +source=(http://downloads.sourceforge.net/sourceforge/${pkgname}/${pkgname}-${pkgver}.tar.bz2 + lua52_compat.patch) +sha1sums=('de95ab1132d022f3cf47a033447a0d745c4c249d' + '248f4c8b62557677bf27a0d06feb15148d811ce7') + +prepare() { + cd ${pkgname}-${pkgver} + patch -p1 -i "$srcdir"/lua52_compat.patch + autoreconf -vi +} + +build() { + cd ${pkgname}-${pkgver} + ./configure --prefix=/usr --sysconfdir=/etc --enable-shared --enable-sys-lua \ + --enable-client=gtk3 --enable-fcmp=gtk3 --enable-fcdb=sqlite3 --enable-aimodules + make +} + +package() { + cd ${pkgname}-${pkgver} + make DESTDIR="${pkgdir}" install +} Property changes on: freeciv/trunk/PKGBUILD ___________________________________________________________________ Added: svn:keywords ## -0,0 +1 ## +Id \ No newline at end of property Added: freeciv/trunk/lua52_compat.patch =================================================================== --- freeciv/trunk/lua52_compat.patch (rev 0) +++ freeciv/trunk/lua52_compat.patch 2018-07-22 06:55:49 UTC (rev 362769) @@ -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
