Skip to content

Latest commit

 

History

9 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rmlui-lua54

Arch packaging for RmlUi, forked from the AUR rmlui package with its history intact.

Why this fork exists

The AUR package builds RmlUi's Lua bindings against LuaJIT (-DRMLUI_LUA_BINDINGS_LIBRARY=luajit). LuaJIT exports the same lua_* symbols as PUC Lua, so a LuaJIT-linked librmlui_lua.so cannot share a process with an application that already embeds PUC Lua — which is exactly what VoxelGame does, via sol2 on Lua 5.4.

This fork builds the bindings against PUC Lua 5.4 (the lua54 package) instead:

-DRMLUI_LUA_BINDINGS_LIBRARY=lua
-DLUA_INCLUDE_DIR=/usr/include/lua5.4
-DLUA_LIBRARY=/usr/lib/liblua5.4.so

The LUA_* cache variables are needed because RmlUi calls CMake's FindLua, which otherwise picks the newest lua.h on the system (Lua 5.5 on current Arch).

Two consequences for consumers:

  • librmlui_lua.so links liblua5.4.so, matching an embedded Lua 5.4 runtime.
  • RmlUi's installed CMake config resolves plain Lua rather than LuaJit, so find_package(RmlUi) no longer requires luajit to be installed. If your project already defines a Lua::Lua target before calling find_package(RmlUi), RmlUi reuses it.

Install

git clone https://git.doomhowl.com/Doomhowl-Interactive/rmlui-lua54.git
cd rmlui-lua54
makepkg -si

The package provides=rmlui and conflicts=rmlui, so it is a drop-in replacement for the AUR package — find_package(RmlUi CONFIG) and the RmlUi::Core, RmlUi::Debugger and RmlUi::Lua targets are unchanged.

Updating to a new RmlUi release

  1. Bump pkgver in PKGBUILD and reset pkgrel=1.
  2. updpkgsums
  3. makepkg --printsrcinfo > .SRCINFO
  4. Rebase against the upstream AUR repo if its packaging changed: git remote add aur https://aur.archlinux.org/rmlui.git && git fetch aur && git rebase aur/master

.nvchecker.toml is inherited from the AUR package and still tracks upstream GitHub releases.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages