[arch-commits] Commit in fcitx5-lua/trunk (PKGBUILD unbreak-lua54.patch)

Felix Yan felixonmars at archlinux.org
Fri Jul 31 19:11:38 UTC 2020


    Date: Friday, July 31, 2020 @ 19:11:37
  Author: felixonmars
Revision: 666327

upgpkg: fcitx5-lua 0.0.0.20200728-1

Added:
  fcitx5-lua/trunk/unbreak-lua54.patch
Modified:
  fcitx5-lua/trunk/PKGBUILD

---------------------+
 PKGBUILD            |   17 ++++++++++++-----
 unbreak-lua54.patch |   18 ++++++++++++++++++
 2 files changed, 30 insertions(+), 5 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-07-31 19:04:58 UTC (rev 666326)
+++ PKGBUILD	2020-07-31 19:11:37 UTC (rev 666327)
@@ -1,18 +1,25 @@
 # Maintainer: Felix Yan <felixonmars at archlinux.org>
 
 pkgname=fcitx5-lua
-pkgver=0.0.0.20200610
-_commit=8ad9929af4ac7eada792a2f4a4c42f0be078c6ad
+pkgver=0.0.0.20200728
+_commit=17c57a79a550a1f94b12a3279e6014ce0f8f1b4e
 pkgrel=1
 pkgdesc="Lua support for Fcitx 5"
 arch=('x86_64')
 url="https://github.com/fcitx/fcitx5-lua"
 license=('GPL')
-depends=('fcitx5' 'lua53')
+depends=('fcitx5' 'lua')
 makedepends=('extra-cmake-modules' 'ninja')
-source=("https://github.com/fcitx/fcitx5-lua/archive/$_commit/fcitx5-lua-$_commit.tar.gz")
-sha512sums=('77cfc8084b00a8e306bc52441d43c36fb2bd5456b70bb2133e3752f3fc6f8ae7fadd32dbf4e4c9ccb9b55b10db1708be01c2ecaa60332e22d58966193b9b774a')
+source=("https://github.com/fcitx/fcitx5-lua/archive/$_commit/fcitx5-lua-$_commit.tar.gz"
+        unbreak-lua54.patch)
+sha512sums=('62b694d7406028031eb11bef6350c5c78d46a2a3778a1dbb72608500618e42e64643566c8b06ae7bcf928ccc0db8ff13f284750eef5070cc9343cef717c46bbc'
+            '74b1fa15c36fd7a58c259fba85876a451d4ca0b154585162235b9ae16a015368da0b9c97d88c591a6cb03cd20357a5b450a6073cc68c8cf8730ed12298401dfa')
 
+prepare() {
+  cd $pkgname-$_commit
+  patch -Rp1 -i ../unbreak-lua54.patch
+}
+
 build(){
   cd $pkgname-$_commit
 

Added: unbreak-lua54.patch
===================================================================
--- unbreak-lua54.patch	                        (rev 0)
+++ unbreak-lua54.patch	2020-07-31 19:11:37 UTC (rev 666327)
@@ -0,0 +1,18 @@
+diff --git a/src/addonloader/luahelper.h b/src/addonloader/luahelper.h
+index 6c57851..0452e6b 100644
+--- a/src/addonloader/luahelper.h
++++ b/src/addonloader/luahelper.h
+@@ -91,13 +91,6 @@ constexpr char kLuaModuleName[] = "__fcitx_luaaddon";
+ 
+ LuaAddonState *GetLuaAddonState(lua_State *lua);
+ 
+-// These functions are required for GetLuaAddonState.
+-extern decltype(&::lua_getglobal) _fcitx_lua_getglobal;
+-extern decltype(&::lua_touserdata) _fcitx_lua_touserdata;
+-extern decltype(&::lua_settop) _fcitx_lua_settop;
+-extern decltype(&::lua_close) _fcitx_lua_close;
+-extern decltype(&::luaL_newstate) _fcitx_luaL_newstate;
+-
+ FCITX_DECLARE_LOG_CATEGORY(lua_log);
+ #define FCITX_LUA_INFO() FCITX_LOGC(::fcitx::lua_log, Info)
+ #define FCITX_LUA_WARN() FCITX_LOGC(::fcitx::lua_log, Warn)



More information about the arch-commits mailing list