initial commit

Signed-off-by: sisungo <[email protected]>
This commit is contained in:
2026-08-22 11:41:05 +00:00
commit 5c89842dc0
130 changed files with 16319 additions and 0 deletions
+34
View File
@@ -0,0 +1,34 @@
from lib import arch, cpp
from lib.make import *
version("1.2.6+1")
description("the SemiOS fork of musl-libc, providing POSIX C standard library and system runtime")
maintainer("sisungo <[email protected]>")
source_url("https://gitea.semilabs.org/semios/semi-libc/archive/v1.2.6-1.tar.gz")
builddep("shortcut/c")
builddep("shortcut/autotools")
def build():
cpp.configure(["--prefix=/"])
cpp.make()
cpp.make_install()
on_build(build)
def musl_target():
return arch.get_target().split("-")[0]
package("semi-libc")
cpp.use_auto_pack(["lib"])
link("lib/libc.so", f"/lib/ld-musl-{musl_target()}.so.1")
link("lib/libc.so", "/bin/ldd")
package("semi-libc-dev")
cpp.use_auto_pack(["dev"])
dep("semi-libc (same)")