feat: add wayland related tools
Signed-off-by: sisungo <[email protected]>
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
import os
|
||||
|
||||
from lib.make import *
|
||||
from lib import cpp
|
||||
|
||||
|
||||
version("0.9.3")
|
||||
description("A minimal seat management daemon, and a universal seat management library.")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_url("https://git.sr.ht/~kennylevinsen/seatd/archive/0.9.3.tar.gz")
|
||||
|
||||
builddep("shortcut/c")
|
||||
builddep("shortcut/meson")
|
||||
builddep("linux-dev @target")
|
||||
|
||||
|
||||
def build():
|
||||
os.environ["CFLAGS"] = os.environ.get("CFLAGS", "") + " -Wno-error"
|
||||
cpp.meson_setup([
|
||||
f"--libdir={get_prefix('libseat')}/lib",
|
||||
f"--includedir={get_prefix('libseat-dev')}/include",
|
||||
f"--bindir={get_prefix('seatd')}/bin",
|
||||
"-Ddefaultpath=/run/seatd.sock",
|
||||
])
|
||||
cpp.meson_compile()
|
||||
cpp.meson_install()
|
||||
|
||||
on_build(build)
|
||||
|
||||
|
||||
package("libseat")
|
||||
dep("semi-libc @same-arch")
|
||||
cpp.use_auto_pack(["lib"])
|
||||
|
||||
package("seatd")
|
||||
dep("semi-libc @same-arch")
|
||||
cpp.use_auto_pack(["bin"])
|
||||
|
||||
package("libseat-dev")
|
||||
dep("semi-libc @same-arch")
|
||||
dep("libseat (same)")
|
||||
cpp.use_auto_pack(["dev"])
|
||||
Reference in New Issue
Block a user