forked from semios/ports
32 lines
674 B
Python
32 lines
674 B
Python
from lib import cpp
|
|
from lib.make import *
|
|
|
|
version("0.3.1")
|
|
description("A Wayland kiosk")
|
|
maintainer("sisungo <[email protected]>")
|
|
source_url("https://github.com/cage-kiosk/cage/releases/download/v0.3.1/cage-0.3.1.tar.gz")
|
|
|
|
builddep("shortcut/c")
|
|
builddep("shortcut/meson")
|
|
builddep("libwlr-dev @target")
|
|
builddep("linux-dev @target")
|
|
|
|
|
|
def build():
|
|
cpp.meson_setup([
|
|
"--prefix=/",
|
|
f"--bindir={get_prefix('cage')}/bin",
|
|
])
|
|
cpp.meson_compile()
|
|
cpp.meson_install()
|
|
|
|
on_build(build)
|
|
|
|
|
|
package("cage")
|
|
dep("semi-libc @same-arch")
|
|
dep("libwayland @same-arch")
|
|
dep("libwlr @same-arch")
|
|
dep("libxkbcommon @same-arch")
|
|
cpp.use_auto_pack(["bin"])
|