forked from semios/semios-packages
Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
76e7fa8476 |
@@ -0,0 +1,25 @@
|
||||
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"])
|
||||
@@ -1,48 +0,0 @@
|
||||
from lib.make import *
|
||||
from lib import cpp
|
||||
|
||||
version("2.5.4")
|
||||
source_url("https://ftpmirror.gnu.org/libtool/libtool-2.5.4.tar.gz")
|
||||
|
||||
builddep("shortcut/c")
|
||||
builddep("shortcut/autotools")
|
||||
builddep("gnu-m4")
|
||||
|
||||
|
||||
def build():
|
||||
# Build original source code
|
||||
cpp.configure([f"--prefix={get_prefix('libtool')}"])
|
||||
cpp.make()
|
||||
cpp.make_install()
|
||||
|
||||
# Patch shell binary path
|
||||
with open("bin/libtoolize") as file:
|
||||
content = file.read()
|
||||
with open("bin/libtoolize", "wt") as file:
|
||||
file.write(content.replace("/usr/bin/env", "/bin/env"))
|
||||
|
||||
on_build(build)
|
||||
|
||||
|
||||
def pack_libtool(composer):
|
||||
composer.add_dir("bin")
|
||||
|
||||
package("libltdl")
|
||||
dep("semi-libc @same-arch")
|
||||
cpp.use_auto_pack(["lib"])
|
||||
|
||||
package("libltdl-dev")
|
||||
dep("semi-libc @same-arch")
|
||||
cpp.use_auto_pack(["dev"])
|
||||
|
||||
|
||||
def pack_libtool(composer):
|
||||
composer.add_dir("bin", "bin")
|
||||
composer.makedir("share")
|
||||
composer.add_dir("share/libtool", "share/libtool")
|
||||
|
||||
package("libtool")
|
||||
dep("semi-libc @same-arch")
|
||||
dep("mksh")
|
||||
dep("coreutils")
|
||||
on_pack(pack_libtool)
|
||||
Reference in New Issue
Block a user