- Go 1.21 or later
- Lua 5.3 header files
- Standard build tools (make, gcc)
- Ruby with rake
On Debian/Ubuntu:
sudo apt install build-essential git rake golang liblua5.3-devgit clone https://github.com/speedata/publisher.git
cd publisher
rake build
rake buildlibIf the Lua headers are not in /usr/include/lua5.3, set CGO_CFLAGS:
export CGO_CFLAGS="-I/usr/local/include/lua5.3"Set CGO_LDFLAGS to point to the LuaTeX binary directory:
set CGO_LDFLAGS=-llua53w64 -L/path/to/luatex/windows/amd64/default/You may also need the Microsoft Visual C++ runtime (VCRuntime140.dll). The installation path must not contain non-ASCII characters.
To compile for platforms other than your host (Linux/AMD64, Windows/AMD64, macOS/ARM), set a CC_<platform>_<os> variable pointing to the cross-compiler:
export CC_arm64_linux=/usr/bin/aarch64-linux-gnu-gccSee also this discussion.
The speedata Publisher requires a custom LuaTeX binary (sdluatex). Download it from https://download.speedata.de/#extra and place it in the bin/ directory:
wget https://download.speedata.de/files/extra/luatex_115-win-mac-linux.zip
unzip luatex_115-win-mac-linux.zip
cp luatex/linux/sdluatex bin/Verify with bin/sdluatex --version.
You need Hugo
rake docrake qa