Compare commits

..
6 Commits
3 changed files with 61 additions and 0 deletions
+2
View File
@@ -46,6 +46,8 @@ def builddep(s: str):
_builddep += ["cargo", "rustc"]
elif s == "shortcut/cmake":
_builddep += ["cmake", "ninja"]
elif s == "shortcut/meson":
_builddep += ["meson", "ninja"]
else:
_builddep += [s]
+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)
+29
View File
@@ -0,0 +1,29 @@
import subprocess
import os
from lib.make import *
from lib import cpp
version("1.2.7")
source_url("https://github.com/void-linux/musl-fts/archive/refs/tags/v1.2.7.tar.gz")
def build():
with open("config.h", "wt+") as config_h:
pass
subprocess.run(
os.environ.get("CC", "cc").split(" ")
+ ["-std=c23", "-I", ".", "-O3", "-c", "-o", "fts.o", "fts.c"],
check=True,
)
subprocess.run(["ar", "rcs", "libfts.a", "fts.o"], check=True)
on_build(build)
def pack_dev(composer):
composer.makedir("lib")
composer.makedir("include")
composer.addfile("libfts.a", "lib/libfts.a")
composer.addfile("fts.h", "include/fts.h")
package("libfts-dev")
on_pack(pack_dev)