31 lines
520 B
Python
31 lines
520 B
Python
import lib.arch as arch
|
|
from lib.cpp import *
|
|
from lib.make import *
|
|
|
|
version("1.2.6")
|
|
source_url("https://gitea.semilabs.org/semios/semi-libc/archive/v1.2.6.tar.gz")
|
|
|
|
builddep("clang")
|
|
|
|
|
|
def build():
|
|
configure(["--prefix=/"])
|
|
make()
|
|
make_install()
|
|
|
|
|
|
on_build(build)
|
|
|
|
|
|
def musl_target():
|
|
return arch.get_target().split("-")[0]
|
|
|
|
|
|
package("semi-libc")
|
|
use_auto_pack(["lib"])
|
|
link("lib/libc.so", f"/lib/ld-musl-{musl_target()}.so.1")
|
|
|
|
package("semi-libc-dev")
|
|
use_auto_pack(["dev"])
|
|
dep("semi-libc (same)")
|