forked from semios/semios-packages
Compare commits
1
Commits
dbus-broker
..
meson
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1b2f8a2295 |
@@ -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"])
|
||||
@@ -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)
|
||||
Reference in New Issue
Block a user