Files
planar/planar-dev-1.rockspec
2026-05-04 20:28:10 +02:00

45 lines
1004 B
Lua

-- SPDX-FileCopyrightText: © 2026 FireFly
-- SPDX-License-Identifier: 0BSD
package = "planar"
version = "dev-1"
rockspec_format = "3.0"
source = {
url = "",
}
description = {
summary = "stupid stupid",
homepage = "",
license = "0BSD",
}
dependencies = {
"lua == 5.4",
"cffi-lua >= 0.2.4",
"firefly/wau",
"luaposix",
}
external_dependencies = {
-- runtime dependencies: ensure these are in your LD_LIBRARY_PATH
-- XKBCOMMON = { library = "libxkbcommon.so" },
-- WAYLAND = { library = "libwayland-client.so" },
}
build = {
type = "command",
build_command = [[
for f in planar/protocol/*.xml; do
wau-scanner <$f >${f%%.xml}.lua
done
]],
install_command = [[
# mimic build.type == "builtin" behaviour
install -Dm644 planar/xkbcommon.lua $(LUADIR)/planar/xkbcommon.lua
install -Dm644 -t $(LUADIR)/planar/protocol planar/protocol/*.lua
install -Dm755 planar.lua $(BINDIR)/planar
]],
}