[arch-commits] Commit in freeciv/repos (3 files)

Antonio Rojas arojas at archlinux.org
Sun Jul 22 06:55:52 UTC 2018


    Date: Sunday, July 22, 2018 @ 06:55:52
  Author: arojas
Revision: 362770

archrelease: copy trunk to community-x86_64

Added:
  freeciv/repos/community-x86_64/
  freeciv/repos/community-x86_64/PKGBUILD
    (from rev 362769, freeciv/trunk/PKGBUILD)
  freeciv/repos/community-x86_64/lua52_compat.patch
    (from rev 362769, freeciv/trunk/lua52_compat.patch)

--------------------+
 PKGBUILD           |   35 +++++++++++++++++++++++++++++++++++
 lua52_compat.patch |   13 +++++++++++++
 2 files changed, 48 insertions(+)

Copied: freeciv/repos/community-x86_64/PKGBUILD (from rev 362769, freeciv/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2018-07-22 06:55:52 UTC (rev 362770)
@@ -0,0 +1,35 @@
+# $Id$
+# Maintainer: Eric Bélanger <eric at archlinux.org>
+
+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
+}

Copied: freeciv/repos/community-x86_64/lua52_compat.patch (from rev 362769, freeciv/trunk/lua52_compat.patch)
===================================================================
--- community-x86_64/lua52_compat.patch	                        (rev 0)
+++ community-x86_64/lua52_compat.patch	2018-07-22 06:55:52 UTC (rev 362770)
@@ -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



More information about the arch-commits mailing list