Compare commits

..
1 Commits
Author SHA1 Message Date
sisungo 1b2f8a2295 feat: add package meson
Signed-off-by: sisungo <[email protected]>
2026-07-14 15:48:08 +08:00
2 changed files with 30 additions and 25 deletions
-25
View File
@@ -1,25 +0,0 @@
from lib.make import *
from lib import cpp
version("1.37")
source_url("https://github.com/bus1/dbus-broker/releases/download/v37/dbus-broker-37.tar.xz")
supported_arch(lambda arch: "linux" in arch)
builddep("shortcut/c")
builddep("meson")
builddep("ninja")
builddep(f"linux-dev @{arch.get_target()}")
def build():
cpp.meson_setup(["-Dlauncher=false", "--prefix=/"])
cpp.meson_compile()
cpp.meson_install()
on_build(build)
package("dbus-broker")
dep("semi-libc @same-arch")
provide("dbus-daemon")
cpp.use_auto_pack(["bin"])
+30
View File
@@ -0,0 +1,30 @@
import subprocess
from lib.make import *
version("1.11.2")
source_url("https://github.com/mesonbuild/meson/releases/download/1.11.2/meson-1.11.2.tar.gz")
builddep("python")
def build():
subprocess.run([
"python3",
"./packaging/create_zipapp.py",
"--outfile",
"meson",
"--interpreter",
"/bin/python3"
])
on_build(build)
def pack_meson(composer):
composer.makedir("bin")
composer.addfile("meson", "bin/meson")
package("meson")
dep("python @same-arch")
recommend("ninja")
on_pack(pack_meson)