Compare commits
94
Commits
| Author | SHA256 | Date | |
|---|---|---|---|
|
|
9509489e1e | ||
|
|
e724681edc | ||
|
|
13c7e6420b | ||
|
|
f8e4d604fd | ||
|
|
78de289631 | ||
|
|
1bcc00a752 | ||
|
|
482d59423c | ||
|
|
7c7aff2e75 | ||
|
|
094d28e120 | ||
|
|
6843e89c55 | ||
|
|
e33b2d3865 | ||
|
|
614fcad71b | ||
|
|
38f0a51535 | ||
|
|
1ba9775745 | ||
|
|
970322fd08 | ||
|
|
40bb77f549 | ||
|
|
a822fbd874 | ||
|
|
711862b75e | ||
|
|
a7527529ac | ||
|
|
1294b44c63 | ||
|
|
17cdaf9af8 | ||
|
|
6c6d7cf178 | ||
|
|
205a171e83 | ||
|
|
ff54f757c8 | ||
|
|
fe16277c83 | ||
|
|
1f18aeb5ce | ||
|
|
0a2ed6185d | ||
|
|
1cefa4b667 | ||
|
|
2bc64bf1ce | ||
|
|
cc51ad259b | ||
|
|
8b31b5ae79 | ||
|
|
c14e7c9def | ||
|
|
5b36a2a6c8 | ||
|
|
73c90e3076 | ||
|
|
fe2e19f34f | ||
|
|
4a0b23f4a5 | ||
|
|
b6e8afd7af | ||
|
|
a989da8a09 | ||
|
|
41979537e0 | ||
|
|
616878224f | ||
|
|
371bcf96cc | ||
|
|
dfc2e163a0 | ||
|
|
b12ab4c511 | ||
|
|
568a39157e | ||
|
|
dfd27ca052 | ||
|
|
abd0524d04 | ||
|
|
7ae32e99e0 | ||
|
|
d6c8742c93 | ||
|
|
8a010f1043 | ||
|
|
1ecee11772 | ||
|
|
ceb9f7f13f | ||
|
|
05f922716a | ||
|
|
d27f5433b3 | ||
|
|
120d0167ca | ||
|
|
591c01ac09 | ||
|
|
7745a33e23 | ||
|
|
0e340874c1 | ||
|
|
9098b94a26 | ||
|
|
85dcd09cba | ||
|
|
83777af4af | ||
|
|
ea07b8b123 | ||
|
|
dcae4be7a2 | ||
|
|
8abbcfeb3a | ||
|
|
58e4282e1e | ||
|
|
34a784e0c4 | ||
|
|
394d98ef39 | ||
|
|
a9f0e7d1f2 | ||
|
|
91fbbe42de | ||
|
|
8ded967628 | ||
|
|
da332b823f | ||
|
|
3e3c35409e | ||
|
|
041673751a | ||
|
|
57accf89df | ||
|
|
32b14d41b0 | ||
|
|
56c057359b | ||
|
|
534b3dc415 | ||
|
|
ffe2f975f0 | ||
|
|
1a062e245f | ||
|
|
4460615a19 | ||
|
|
c156ff8420 | ||
|
|
b70b9aeb6d | ||
|
|
2159ca1516 | ||
|
|
f2ce5fb8a7 | ||
|
|
25c42c180a | ||
|
|
65bda86968 | ||
|
|
fe5d495a0f | ||
|
|
660b39d4a7 | ||
|
|
0257d801aa | ||
|
|
b72f8acd4a | ||
|
|
bc253ce53d | ||
|
|
63a9bda552 | ||
|
|
0ca500fd6d | ||
|
|
5b117d731d | ||
|
|
25428dc52c |
No files matched your search
+1
-1
@@ -1 +1 @@
|
||||
from . import arch, atombuild, make, packie, pkgcomposer, sources, managed_source
|
||||
from . import arch, atombuild, make, packie, pkgcomposer, sources, managed_source, logging
|
||||
+8
-19
@@ -5,14 +5,12 @@ import subprocess
|
||||
from . import packie
|
||||
|
||||
BASE_REQUIREMENTS = [
|
||||
# Basic packages for running shell scripts
|
||||
"mksh",
|
||||
"coreutils",
|
||||
"findutils",
|
||||
"diffutils",
|
||||
# Core system
|
||||
"SemiOS.Assembly.CoreRuntime",
|
||||
"SemiOS.Assembly.Networking",
|
||||
"libgcc-compat",
|
||||
# Packages for running `semios-packages` scripts
|
||||
"python",
|
||||
"packie",
|
||||
"zstd",
|
||||
"libarchive-tools",
|
||||
# Packages for building packages that require patching
|
||||
@@ -22,16 +20,6 @@ BASE_REQUIREMENTS = [
|
||||
"libz-ng",
|
||||
"liblzma",
|
||||
"libbzip2",
|
||||
# Basic libraries
|
||||
"sqlite",
|
||||
"libgcc-compat",
|
||||
"libcxx",
|
||||
"semi-libc",
|
||||
# Networking
|
||||
"ca-certificates",
|
||||
"certutil",
|
||||
"aws-lc-libssl",
|
||||
"aws-lc-tools",
|
||||
]
|
||||
|
||||
|
||||
@@ -102,7 +90,7 @@ def prepare_build_env(root: str, extreq: list[str] = []):
|
||||
|
||||
|
||||
def enter_build_env(root: str, cmd: list[str], chdir: str = "/"):
|
||||
reserve_env = ["https_proxy", "http_proxy", "all_proxy", "SEMIOS_SOURCE_REPO"]
|
||||
reserve_env = ["https_proxy", "http_proxy", "all_proxy", "SEMIOS_SOURCE_REPO", "TERM"]
|
||||
reserve_env_args = []
|
||||
for i in reserve_env:
|
||||
if os.environ.get(i):
|
||||
@@ -124,8 +112,9 @@ def enter_build_env(root: str, cmd: list[str], chdir: str = "/"):
|
||||
"--setenv", "SEMIOS_PKGBUILD_IN_ATOMIC", "1",
|
||||
"--setenv", "USER", "root",
|
||||
"--setenv", "LOGNAME", "root",
|
||||
"--chdir",
|
||||
chdir,
|
||||
"--setenv", "LANG", "C.UTF-8",
|
||||
"--setenv", "LC_ALL", "C.UTF-8",
|
||||
"--chdir", chdir,
|
||||
]
|
||||
+ reserve_env_args
|
||||
+ cmd,
|
||||
|
||||
+61
-29
@@ -1,4 +1,5 @@
|
||||
import os
|
||||
import shlex
|
||||
import shutil
|
||||
import subprocess
|
||||
|
||||
@@ -6,28 +7,22 @@ from lib.common import treedir
|
||||
|
||||
from . import make as libmake
|
||||
from . import pkgcomposer
|
||||
from . import logging
|
||||
|
||||
|
||||
def configure(rem: list[str] = []):
|
||||
subprocess.run(["./configure"] + rem, check=True)
|
||||
# Common helpers
|
||||
|
||||
def write_prev_configure(args: list[str]):
|
||||
with open("_cpp_configure", "w", encoding="utf-8") as file:
|
||||
file.write(shlex.join(args) + "\n")
|
||||
|
||||
|
||||
def cmake(rem: list[str] = []):
|
||||
source_dir = os.getcwd()
|
||||
os.makedirs("../cmake_build", exist_ok=True)
|
||||
os.chdir("../cmake_build")
|
||||
subprocess.run(
|
||||
[
|
||||
"cmake",
|
||||
"-GNinja",
|
||||
"-DCMAKE_BUILD_TYPE=Release",
|
||||
"-DCMAKE_INSTALL_PREFIX=/",
|
||||
source_dir,
|
||||
]
|
||||
+ rem,
|
||||
check=True,
|
||||
)
|
||||
|
||||
def read_prev_configure() -> list[str] | None:
|
||||
try:
|
||||
with open("_cpp_configure", "r", encoding="utf-8") as file:
|
||||
return shlex.split(file.read())
|
||||
except FileNotFoundError:
|
||||
return None
|
||||
|
||||
def _move_install():
|
||||
subprocess.run(["sh", "-c", "cp -r ./pkg/*/* . 2>/dev/null || true"], check=False)
|
||||
@@ -35,55 +30,92 @@ def _move_install():
|
||||
["sh", "-c", "cp -r ./usr/local/* . 2>/dev/null || true"], check=False
|
||||
)
|
||||
subprocess.run(["sh", "-c", "cp -r ./usr/* . 2>/dev/null || true"], check=False)
|
||||
subprocess.run(["rm", "-rf", "./pkg", "./usr"], check=False)
|
||||
subprocess.run(["rm", "-rf", "./pkg", "./usr", "./local"], check=False)
|
||||
|
||||
# AutoTools & GNU Make
|
||||
|
||||
def configure(rem: list[str] = []):
|
||||
if read_prev_configure() == rem:
|
||||
logging.step("Skipping previously completed configuration.")
|
||||
else:
|
||||
logging.step("Configuring project via AutoTools...")
|
||||
logging.run_volatile(["./configure"] + rem, check=True)
|
||||
write_prev_configure(rem)
|
||||
|
||||
def make(rem: list[str] = []):
|
||||
subprocess.run(["make", f"-j{os.cpu_count()}"] + rem, check=True)
|
||||
|
||||
logging.step("Building project via Unix Makefile...")
|
||||
logging.run_volatile(["make", f"-j{os.cpu_count()}"] + rem, check=True)
|
||||
|
||||
def make_install(rem: list[str] | None = None, chdir: bool = True, move: bool = True):
|
||||
logging.step("Installing project to temporary directory via Unix Makefile...")
|
||||
default_rem = ["DESTDIR=" + os.getcwd() + "/../cpp_install"]
|
||||
if rem is None:
|
||||
try:
|
||||
shutil.rmtree("../cpp_install")
|
||||
except:
|
||||
pass
|
||||
subprocess.run(["make", "install"] + (rem or default_rem), check=True)
|
||||
logging.run_volatile(["make", "install"] + (rem or default_rem), check=True)
|
||||
if chdir:
|
||||
os.chdir("../cpp_install")
|
||||
if chdir and move:
|
||||
_move_install()
|
||||
|
||||
# CMake
|
||||
|
||||
def cmake(rem: list[str] = []):
|
||||
source_dir = os.getcwd()
|
||||
os.makedirs("../cmake_build", exist_ok=True)
|
||||
os.chdir("../cmake_build")
|
||||
if read_prev_configure() == rem:
|
||||
logging.step("Skipping previously completed configuration.")
|
||||
else:
|
||||
logging.step("Configuring project via CMake...")
|
||||
logging.run_volatile(
|
||||
["cmake", "-GNinja", "-DCMAKE_BUILD_TYPE=Release", "-DCMAKE_INSTALL_PREFIX=/", source_dir] + rem,
|
||||
check=True,
|
||||
)
|
||||
write_prev_configure(rem)
|
||||
|
||||
# Ninja
|
||||
|
||||
def ninja(rem: list[str] = []):
|
||||
subprocess.run(["ninja"] + rem, check=True)
|
||||
|
||||
logging.step("Building project via Ninja...")
|
||||
logging.run_volatile(["ninja"] + rem, check=True)
|
||||
|
||||
def ninja_install(rem: list[str] = [], chdir: bool = True, move: bool = True):
|
||||
logging.step("Installing project to temporary directory via Ninja...")
|
||||
if chdir:
|
||||
os.environ["DESTDIR"] = os.getcwd() + "/../cpp_install"
|
||||
subprocess.run(["ninja", "install"] + rem, check=True)
|
||||
logging.run_volatile(["ninja", "install"] + rem, check=True)
|
||||
if chdir:
|
||||
os.chdir(os.environ["DESTDIR"])
|
||||
if chdir and move:
|
||||
_move_install()
|
||||
|
||||
# Meson
|
||||
|
||||
def meson_setup(rem: list[str] = []):
|
||||
subprocess.run(["meson", "setup", "_meson_build"] + rem + ["--buildtype=release"], check=True)
|
||||
if read_prev_configure() == rem:
|
||||
logging.step("Skipping previously completed configuration.")
|
||||
else:
|
||||
logging.step("Configuring project via Meson...")
|
||||
logging.run_volatile(["meson", "setup", "../_meson_build"] + rem + ["--buildtype=release"], check=True)
|
||||
write_prev_configure(rem)
|
||||
os.chdir("../_meson_build")
|
||||
|
||||
|
||||
def meson_compile(rem: list[str] = []):
|
||||
subprocess.run(["meson", "compile", "-C", "_meson_build"] + rem, check=True)
|
||||
logging.step("Building project via Meson...")
|
||||
logging.run_volatile(["meson", "compile"] + rem, check=True)
|
||||
|
||||
|
||||
def meson_install(rem: list[str] | None = None, chdir: bool = True, move: bool = True):
|
||||
logging.step("Install project to temporary directory via Meson...")
|
||||
default_rem = ["--destdir", f"{os.getcwd()}/../cpp_install"]
|
||||
if not rem:
|
||||
os.makedirs("../cpp_install", exist_ok=True)
|
||||
subprocess.run(
|
||||
["meson", "install", "-C", "_meson_build"] + (rem or default_rem), check=True
|
||||
logging.run_volatile(
|
||||
["meson", "install"] + (rem or default_rem), check=True
|
||||
)
|
||||
if chdir:
|
||||
os.chdir("../cpp_install")
|
||||
|
||||
+114
@@ -0,0 +1,114 @@
|
||||
import os
|
||||
import re
|
||||
import shutil
|
||||
import subprocess
|
||||
import sys
|
||||
import unicodedata
|
||||
|
||||
_ANSI_RE = re.compile(r"\033\[[0-9;?]*[ -/]*[@-~]")
|
||||
|
||||
_volatile_pending = False
|
||||
|
||||
|
||||
def _char_width(ch: str) -> int:
|
||||
if unicodedata.combining(ch) or unicodedata.category(ch) in ("Mn", "Me", "Cf"):
|
||||
return 0
|
||||
return 2 if unicodedata.east_asian_width(ch) in ("W", "F") else 1
|
||||
|
||||
|
||||
def _display_width(s: str) -> int:
|
||||
return sum(_char_width(ch) for ch in _ANSI_RE.sub("", s))
|
||||
|
||||
|
||||
def _truncate(s: str, cols: int, ellipsis: str = "…") -> str:
|
||||
if cols <= 0 or _display_width(s) <= cols:
|
||||
return s
|
||||
budget = max(0, cols - _display_width(ellipsis))
|
||||
out = []
|
||||
width = 0
|
||||
i = 0
|
||||
while i < len(s):
|
||||
m = _ANSI_RE.match(s, i)
|
||||
if m:
|
||||
out.append(m.group())
|
||||
i = m.end()
|
||||
continue
|
||||
ch = s[i]
|
||||
i += 1
|
||||
w = _char_width(ch)
|
||||
if width + w > budget:
|
||||
break
|
||||
out.append(ch)
|
||||
width += w
|
||||
return "".join(out) + ellipsis + "\033[0m"
|
||||
|
||||
|
||||
def _terminal_columns() -> int:
|
||||
try:
|
||||
return os.get_terminal_size(sys.stderr.fileno()).columns or 80
|
||||
except (OSError, ValueError, AttributeError):
|
||||
return shutil.get_terminal_size((80, 24)).columns or 80
|
||||
|
||||
|
||||
def _fit_single_line(s: str) -> str:
|
||||
if not sys.stderr.isatty():
|
||||
return s
|
||||
return _truncate(s, max(1, _terminal_columns() - 1))
|
||||
|
||||
|
||||
def _finish_volatile():
|
||||
global _volatile_pending
|
||||
if _volatile_pending:
|
||||
sys.stderr.write("\n")
|
||||
sys.stderr.flush()
|
||||
_volatile_pending = False
|
||||
|
||||
|
||||
def step(s: str):
|
||||
_finish_volatile()
|
||||
print(f"=> \033[34m{s}\033[0m", file=sys.stderr)
|
||||
|
||||
|
||||
def volatile(s: str):
|
||||
global _volatile_pending
|
||||
sys.stderr.write(f"\r\033[K{s}")
|
||||
sys.stderr.flush()
|
||||
_volatile_pending = True
|
||||
|
||||
|
||||
def warning(s: str):
|
||||
_finish_volatile()
|
||||
print(f"\033[33mwarning: {s}\033[0m", file=sys.stderr)
|
||||
|
||||
|
||||
def error(s: str):
|
||||
_finish_volatile()
|
||||
print(f"\033[31merror: {s}\033[0m", file=sys.stderr)
|
||||
|
||||
|
||||
def run_volatile(cmd, *, check=False, **kwargs):
|
||||
kwargs.setdefault("stdout", subprocess.PIPE)
|
||||
kwargs.setdefault("stderr", subprocess.STDOUT)
|
||||
kwargs.setdefault("text", True)
|
||||
kwargs.setdefault("bufsize", 1)
|
||||
|
||||
lines = []
|
||||
|
||||
proc = subprocess.Popen(cmd, **kwargs)
|
||||
try:
|
||||
if proc.stdout is not None:
|
||||
for line in proc.stdout:
|
||||
line = line.rstrip("\r\n")
|
||||
lines.append(line)
|
||||
volatile(_fit_single_line(f"\033[2m ~ {line}\033[0m"))
|
||||
returncode = proc.wait()
|
||||
finally:
|
||||
_finish_volatile()
|
||||
|
||||
if check and returncode != 0:
|
||||
error(f"process exited with code {returncode}")
|
||||
if lines:
|
||||
sys.stderr.write("\n".join(lines) + "\n")
|
||||
sys.stderr.flush()
|
||||
raise subprocess.CalledProcessError(returncode, cmd)
|
||||
return returncode
|
||||
+12
-7
@@ -2,9 +2,7 @@ import typing
|
||||
import hashlib
|
||||
import os
|
||||
|
||||
from lib import arch
|
||||
|
||||
from . import pkgcomposer, sources, managed_source
|
||||
from . import pkgcomposer, sources, managed_source, logging, arch
|
||||
|
||||
_key_global = "@global"
|
||||
_key_version = "version"
|
||||
@@ -41,26 +39,30 @@ _builddep: list[str] = []
|
||||
_blocked_hooks: list[str] = []
|
||||
|
||||
|
||||
def current_target() -> str:
|
||||
return arch.get_target()
|
||||
|
||||
|
||||
def builddep(s: str):
|
||||
global _builddep
|
||||
if s == "shortcut/c":
|
||||
_builddep += ["semi-libc-dev", "clang", "llvm", "lld"]
|
||||
_builddep += ["semi-libc-dev", "clang", "SemiOS.Assembly.NativeDevTools"]
|
||||
elif s == "shortcut/c++":
|
||||
builddep("shortcut/c")
|
||||
_builddep += ["libcxx-dev"]
|
||||
elif s == "shortcut/autotools":
|
||||
_builddep += ["gnu-make", "gnu-sed", "awk", "grep"]
|
||||
_builddep += ["gnu-make", "gnu-sed", "awk", "grep", "pkgconf"]
|
||||
elif s == "shortcut/rust":
|
||||
builddep("shortcut/c")
|
||||
_builddep += ["cargo", "rust"]
|
||||
elif s == "shortcut/go":
|
||||
_builddep += ["go", "llvm"]
|
||||
_builddep += ["go", "SemiOS.Assembly.NativeDevTools"]
|
||||
elif s == "shortcut/cmake":
|
||||
_builddep += ["cmake", "ninja", "pkgconf"]
|
||||
elif s == "shortcut/meson":
|
||||
_builddep += ["meson", "ninja", "pkgconf"]
|
||||
else:
|
||||
_builddep += [s.replace("@target", f"@{arch.get_target()}")]
|
||||
_builddep += [s.replace("@target", f"@{current_target()}")]
|
||||
|
||||
|
||||
def package(s: str):
|
||||
@@ -164,11 +166,13 @@ def block_hook(hook: str):
|
||||
|
||||
def source_url(url: str):
|
||||
if not _dry_run:
|
||||
logging.step(f"Downloading project source code from \"{url}\"...")
|
||||
sources.source_url(url)
|
||||
|
||||
|
||||
def source_git(url: str, branch: str | None = None):
|
||||
if not _dry_run:
|
||||
logging.step(f"Cloning project source code from \"{url}\" (branch \"{branch}\")...")
|
||||
sources.source_git(url, branch)
|
||||
|
||||
|
||||
@@ -177,6 +181,7 @@ def source_managed(s: str, postprocess: str = ""):
|
||||
_managed_source_url = s
|
||||
_managed_source_postprocess = postprocess
|
||||
if not _dry_run:
|
||||
logging.step(f"Downloading project source code from \"{s}\"...")
|
||||
sources.source_url(managed_source.get_repo_url(s))
|
||||
|
||||
|
||||
|
||||
@@ -44,3 +44,7 @@ def prefix_of(pkgident: str):
|
||||
capture_output=True,
|
||||
)
|
||||
return result.stdout.decode().strip()
|
||||
|
||||
|
||||
def select(file: str, pkg: str):
|
||||
subprocess.run([PACKIE_EXEC, "select", file, pkg], check=True)
|
||||
+1
-2
@@ -2,7 +2,6 @@ import json
|
||||
import os
|
||||
import shutil
|
||||
import subprocess
|
||||
import sys
|
||||
|
||||
|
||||
class PkgComposer:
|
||||
@@ -44,7 +43,7 @@ class PkgComposer:
|
||||
],
|
||||
check=True,
|
||||
)
|
||||
subprocess.run(["zstd", "--rm", "-f", f"{self.pkgfile}.tar", "-o", self.pkgfile], check=True)
|
||||
subprocess.run(["zstd", "--rm", "-fq", f"{self.pkgfile}.tar", "-o", self.pkgfile], check=True)
|
||||
|
||||
def makedir(self, name: str):
|
||||
os.mkdir(f"{self.workdir}/bundle/{name}")
|
||||
|
||||
+9
-13
@@ -1,14 +1,17 @@
|
||||
import os
|
||||
import subprocess
|
||||
|
||||
from . import arch, make, pkgcomposer
|
||||
from . import arch, make, pkgcomposer, logging
|
||||
|
||||
|
||||
def _rust_triple(semios: str) -> str:
|
||||
return semios.replace("-semios-linux", "-unknown-linux-musl")
|
||||
def _rust_triple(s: str) -> str:
|
||||
s = s.replace("-semios-linux", "-unknown-linux-musl")
|
||||
s = s.replace("riscv64", "riscv64gc")
|
||||
return s
|
||||
|
||||
|
||||
def build(rem: list[str] = []):
|
||||
logging.step("Building project via Cargo...")
|
||||
cmdline = [
|
||||
"cargo",
|
||||
"build",
|
||||
@@ -19,7 +22,7 @@ def build(rem: list[str] = []):
|
||||
os.environ["RUSTFLAGS"] = (
|
||||
os.environ.get("RUSTFLAGS", "") + " -C target-feature=-crt-static"
|
||||
)
|
||||
subprocess.run(cmdline)
|
||||
logging.run_volatile(cmdline, check=True)
|
||||
|
||||
|
||||
def artifacts_dir():
|
||||
@@ -33,19 +36,12 @@ def _do_auto_pack(pc: pkgcomposer.PkgComposer, srcdir: str, dstdir: str, filter)
|
||||
if filter(ent):
|
||||
if ent.is_dir(follow_symlinks=False):
|
||||
pc.makedir(f"{dstdir}/{ent.name}")
|
||||
elif ent.is_file(follow_symlinks=False):
|
||||
pc.addfile(ent.path, f"{dstdir}/{ent.name}")
|
||||
elif ent.is_symlink() and not os.path.isabs(os.readlink(ent.path)):
|
||||
elif ent.is_file(follow_symlinks=False) or (ent.is_symlink() and not os.path.isabs(os.readlink(ent.path))):
|
||||
pc.addfile(ent.path, f"{dstdir}/{ent.name}")
|
||||
|
||||
|
||||
def _autopack_filter_lib(ent) -> bool:
|
||||
if ent.is_dir(follow_symlinks=False):
|
||||
return False
|
||||
if ent.name.endswith(".so"):
|
||||
return True
|
||||
else:
|
||||
return False
|
||||
return ent.name.endswith(".so") and ent.is_file(follow_symlinks=False)
|
||||
|
||||
|
||||
def _autopack_filter_bin(ent) -> bool:
|
||||
|
||||
@@ -1,9 +1,7 @@
|
||||
import os
|
||||
import subprocess
|
||||
import sys
|
||||
import tarfile
|
||||
import urllib.parse
|
||||
import urllib.request
|
||||
import zipfile
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,37 @@
|
||||
import os
|
||||
|
||||
from lib import cpp
|
||||
from lib.make import *
|
||||
|
||||
version("26.6")
|
||||
description("7-Zip is a file archiver with a high compression ratio.")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_managed("github://ip7z/7zip#26.06")
|
||||
|
||||
builddep("shortcut/c++")
|
||||
builddep("shortcut/autotools")
|
||||
|
||||
|
||||
def build():
|
||||
os.chdir("CPP/7zip/Bundles/Alone2")
|
||||
sharedflags = "-D_GNU_SOURCE -Wno-error=cast-qual -Wno-error=disabled-macro-expansion -lc++ -lc++abi -Wno-error=unused-command-line-argument"
|
||||
cpp.make([
|
||||
"-f", "../../cmpl_clang.mak",
|
||||
f"CC={os.environ.get('CC', 'clang')} {os.environ.get('CFLAGS', '')} {sharedflags}",
|
||||
f"CXX={os.environ.get('CC', 'clang++')} {os.environ.get('CXXFLAGS', '')} {sharedflags}",
|
||||
"DISABLE_RAR=1",
|
||||
])
|
||||
|
||||
on_build(build)
|
||||
|
||||
|
||||
def pack(composer):
|
||||
composer.makedir("bin")
|
||||
composer.add("b/c/7zz", "bin/7zz")
|
||||
|
||||
package("7z")
|
||||
dep("semi-libc @same-arch")
|
||||
dep("libcxx @same-arch")
|
||||
dep("libcxxabi @same-arch")
|
||||
dep("libunwind @same-arch")
|
||||
on_pack(pack)
|
||||
@@ -35,6 +35,7 @@ def on_pack_by(width, style, weight):
|
||||
on_pack(pack)
|
||||
|
||||
|
||||
pkgdir = os.getcwd()
|
||||
def build():
|
||||
filename_version = upstream_version.replace('.', '')
|
||||
os.chdir(f"Download_Folder_FiraSans_{filename_version}/Fonts/Fira_Sans_OTF_{filename_version}")
|
||||
@@ -47,7 +48,7 @@ def build():
|
||||
if filename:
|
||||
pkgname = filename.replace(".otf", "")
|
||||
package(pkgname)
|
||||
configure_script("configure/fontconfig")
|
||||
configure_script(pkgdir + "/configure/fontconfig")
|
||||
arch_any()
|
||||
on_pack_by(width, style, weight)
|
||||
packages += [pkgname]
|
||||
|
||||
@@ -4,10 +4,10 @@ import shutil
|
||||
from lib import rust
|
||||
from lib.make import *
|
||||
|
||||
version("0.10.9")
|
||||
version("0.10.10")
|
||||
description("Modern, portable and fast implementation of service supervisor and the init daemon.")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_managed("github://sisungo/airup#v0.10.9", "rust")
|
||||
source_managed("github://sisungo/airup#v0.10.10", "rust")
|
||||
|
||||
builddep("shortcut/rust")
|
||||
|
||||
@@ -44,8 +44,15 @@ def pack_airup(composer):
|
||||
composer.addfile("airupd", "bin/airupd")
|
||||
composer.addfile("airup-fallback-logger", "libexec/airup-fallback-logger")
|
||||
|
||||
def pack_libairup_sdk(composer):
|
||||
composer.makedir("lib")
|
||||
composer.add("libairup_sdk.so", "lib/libairup_sdk.so")
|
||||
|
||||
package("airup")
|
||||
on_pack(pack_airup)
|
||||
dep("semi-libc @same-arch")
|
||||
link("bin/airupd", "/bin/init")
|
||||
|
||||
package("libairup_sdk")
|
||||
dep("semi-libc @same-arch")
|
||||
on_pack(pack_libairup_sdk)
|
||||
@@ -0,0 +1,30 @@
|
||||
from lib import cpp
|
||||
from lib.make import *
|
||||
|
||||
|
||||
version("0.13.1")
|
||||
description("Low-level unprivileged sandboxing tool used by Flatpak and similar projects")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_managed("github://containers/bubblewrap#v0.13.1")
|
||||
|
||||
builddep("shortcut/c")
|
||||
builddep("shortcut/meson")
|
||||
builddep("libcap-dev @target")
|
||||
builddep("linux-dev @target")
|
||||
builddep("bash")
|
||||
|
||||
supported_arch(lambda arch: "linux" in arch)
|
||||
|
||||
|
||||
def build():
|
||||
cpp.meson_setup([f"--prefix={get_prefix('bubblewrap')}"])
|
||||
cpp.meson_compile()
|
||||
cpp.meson_install()
|
||||
|
||||
on_build(build)
|
||||
|
||||
|
||||
package("bubblewrap")
|
||||
provide("bwrap")
|
||||
dep("libcap @same-arch")
|
||||
cpp.use_auto_pack(["bin"])
|
||||
@@ -0,0 +1,24 @@
|
||||
from lib.make import *
|
||||
from lib import rust
|
||||
|
||||
|
||||
version("0.10.26")
|
||||
description("build and install C-compatible libraries")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_managed("github://lu-zero/cargo-c#v0.10.26", "rust")
|
||||
|
||||
builddep("shortcut/rust")
|
||||
builddep("pkgconf-dev @target")
|
||||
builddep("aws-lc-dev @target")
|
||||
builddep("rust-bindgen")
|
||||
|
||||
|
||||
def build():
|
||||
rust.build()
|
||||
|
||||
on_build(build)
|
||||
|
||||
|
||||
package("cargo-c")
|
||||
dep("semi-libc @same-arch")
|
||||
rust.use_auto_pack(["bin"])
|
||||
@@ -16,6 +16,7 @@ builddep("libz-ng-dev @target")
|
||||
builddep("libcurl-dev @target")
|
||||
builddep("libgit2-dev @target")
|
||||
builddep("libssh2-dev @target")
|
||||
builddep("rust-bindgen")
|
||||
|
||||
|
||||
def build():
|
||||
|
||||
+86
-70
@@ -1,94 +1,100 @@
|
||||
from lib import cpp, arch
|
||||
from lib.make import *
|
||||
|
||||
version("8.21.0")
|
||||
|
||||
version("8.23.0")
|
||||
description("command line tool and library for transferring data with URLs")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_url("https://curl.se/download/curl-8.21.0.tar.gz")
|
||||
source_url("https://curl.se/download/curl-8.23.0.tar.gz")
|
||||
|
||||
builddep("shortcut/c")
|
||||
builddep("shortcut/autotools")
|
||||
builddep(f"libnghttp2-dev @{arch.get_target()}")
|
||||
builddep(f"libcares-dev @{arch.get_target()}")
|
||||
builddep(f"aws-lc-dev @{arch.get_target()}")
|
||||
builddep(f"libbrotli-dev @{arch.get_target()}")
|
||||
builddep(f"libz-dev @{arch.get_target()}")
|
||||
builddep(f"libzstd-dev @{arch.get_target()}")
|
||||
builddep(f"libpsl-dev @{arch.get_target()}")
|
||||
builddep("libnghttp2-dev @target")
|
||||
builddep("libcares-dev @target")
|
||||
builddep("aws-lc-dev @target")
|
||||
builddep("libbrotli-dev @target")
|
||||
builddep("libz-dev @target")
|
||||
builddep("libzstd-dev @target")
|
||||
builddep("libpsl-dev @target")
|
||||
builddep("libngtcp2-dev @target")
|
||||
builddep("libnghttp3-dev @target")
|
||||
|
||||
|
||||
def build():
|
||||
cpp.configure(
|
||||
[
|
||||
"--prefix=/",
|
||||
f"--bindir={get_prefix('curl')}/bin",
|
||||
f"--libdir={get_prefix('libcurl')}/lib",
|
||||
f"--includedir={get_prefix('libcurl-dev')}/include",
|
||||
"--enable-optimize",
|
||||
"--disable-debug",
|
||||
"--enable-warnings",
|
||||
"--enable-symbol-hiding",
|
||||
"--enable-ares",
|
||||
"--enable-http",
|
||||
"--enable-ftp",
|
||||
"--enable-file",
|
||||
"--enable-ipfs",
|
||||
"--disable-ldap",
|
||||
"--disable-ldaps",
|
||||
"--enable-rtsp",
|
||||
"--enable-proxy",
|
||||
"--enable-dict",
|
||||
"--enable-telnet",
|
||||
"--enable-tftp",
|
||||
"--enable-pop3",
|
||||
"--enable-imap",
|
||||
"--enable-smb",
|
||||
"--enable-smtp",
|
||||
"--enable-gopher",
|
||||
"--enable-mqtt",
|
||||
"--disable-init-mem-debug",
|
||||
"--enable-manual",
|
||||
"--enable-docs",
|
||||
"--enable-libcurl-option",
|
||||
"--enable-ipv6",
|
||||
"--enable-openssl-auto-load-config",
|
||||
"--with-ca-path=/var/config/ssl/certs",
|
||||
"--enable-versioned-symbols",
|
||||
"--enable-typecheck",
|
||||
"--enable-verbose",
|
||||
"--disable-tls-srp",
|
||||
"--enable-unix-sockets",
|
||||
"--enable-cookies",
|
||||
"--enable-socketpair",
|
||||
"--enable-http-auth",
|
||||
"--enable-doh",
|
||||
"--enable-mime",
|
||||
"--enable-bindlocal",
|
||||
"--enable-form-api",
|
||||
"--enable-dateparse",
|
||||
"--enable-netrc",
|
||||
"--enable-progress-meter",
|
||||
"--enable-get-easy-options",
|
||||
"--enable-alt-svc",
|
||||
"--enable-headers-api",
|
||||
"--enable-hsts",
|
||||
"--enable-websockets",
|
||||
"--with-openssl",
|
||||
"--with-nghttp2",
|
||||
"--without-libidn2",
|
||||
]
|
||||
)
|
||||
cpp.configure([
|
||||
"--prefix=/",
|
||||
f"--bindir={get_prefix('curl')}/bin",
|
||||
f"--libdir={get_prefix('libcurl')}/lib",
|
||||
f"--includedir={get_prefix('libcurl-dev')}/include",
|
||||
"--enable-optimize",
|
||||
"--disable-debug",
|
||||
"--enable-warnings",
|
||||
"--enable-symbol-hiding",
|
||||
"--enable-ares",
|
||||
"--enable-http",
|
||||
"--enable-ftp",
|
||||
"--enable-file",
|
||||
"--enable-ipfs",
|
||||
"--disable-ldap",
|
||||
"--disable-ldaps",
|
||||
"--enable-rtsp",
|
||||
"--enable-proxy",
|
||||
"--enable-dict",
|
||||
"--enable-telnet",
|
||||
"--enable-tftp",
|
||||
"--enable-pop3",
|
||||
"--enable-imap",
|
||||
"--enable-smb",
|
||||
"--enable-smtp",
|
||||
"--enable-gopher",
|
||||
"--enable-mqtt",
|
||||
"--disable-init-mem-debug",
|
||||
"--enable-manual",
|
||||
"--enable-docs",
|
||||
"--enable-libcurl-option",
|
||||
"--enable-ipv6",
|
||||
"--enable-openssl-auto-load-config",
|
||||
"--with-ca-path=/var/config/ssl/certs",
|
||||
"--enable-versioned-symbols",
|
||||
"--enable-typecheck",
|
||||
"--enable-verbose",
|
||||
"--disable-tls-srp",
|
||||
"--enable-unix-sockets",
|
||||
"--enable-cookies",
|
||||
"--enable-socketpair",
|
||||
"--enable-http-auth",
|
||||
"--enable-doh",
|
||||
"--enable-mime",
|
||||
"--enable-bindlocal",
|
||||
"--enable-form-api",
|
||||
"--enable-dateparse",
|
||||
"--enable-netrc",
|
||||
"--enable-progress-meter",
|
||||
"--enable-get-easy-options",
|
||||
"--enable-alt-svc",
|
||||
"--enable-headers-api",
|
||||
"--enable-hsts",
|
||||
"--enable-websockets",
|
||||
"--with-openssl",
|
||||
"--with-nghttp2",
|
||||
"--with-nghttp3",
|
||||
"--with-ngtcp2",
|
||||
"--without-libidn2",
|
||||
])
|
||||
cpp.make()
|
||||
cpp.make_install()
|
||||
|
||||
|
||||
on_build(build)
|
||||
|
||||
|
||||
package("libcurl")
|
||||
dep("semi-libc @same-arch")
|
||||
dep("libpsl @same-arch")
|
||||
dep("libz @same-arch")
|
||||
dep("libcares @same-arch")
|
||||
dep("libnghttp2 @same-arch")
|
||||
dep("libnghttp3 @same-arch")
|
||||
dep("libngtcp2 @same-arch")
|
||||
dep("libssl @same-arch")
|
||||
dep("libcrypto @same-arch")
|
||||
dep("libzstd @same-arch")
|
||||
@@ -101,4 +107,14 @@ cpp.use_auto_pack(["bin"])
|
||||
|
||||
package("libcurl-dev")
|
||||
dep("libcurl (same)")
|
||||
dep("semi-libc-dev @same-arch")
|
||||
dep("libpsl-dev @same-arch")
|
||||
dep("libz-dev @same-arch")
|
||||
dep("libcares-dev @same-arch")
|
||||
dep("libnghttp2-dev @same-arch")
|
||||
dep("libnghttp3-dev @same-arch")
|
||||
dep("libngtcp2-dev @same-arch")
|
||||
dep("aws-lc-dev @same-arch")
|
||||
dep("libzstd-dev @same-arch")
|
||||
dep("libbrotli-dev @same-arch")
|
||||
cpp.use_auto_pack(["dev"])
|
||||
@@ -0,0 +1,32 @@
|
||||
from lib.make import *
|
||||
from lib import cpp
|
||||
|
||||
|
||||
version("0.193")
|
||||
description("libelf library extracted from elfutils")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_managed("github://arachsys/libelf#v0.193")
|
||||
|
||||
builddep("shortcut/c")
|
||||
builddep("shortcut/autotools")
|
||||
builddep("libz-dev @target")
|
||||
builddep("libzstd-dev @target")
|
||||
|
||||
|
||||
def build():
|
||||
cpp.make()
|
||||
cpp.make_install()
|
||||
|
||||
on_build(build)
|
||||
|
||||
|
||||
package("libgelf")
|
||||
provide("libelf")
|
||||
dep("semi-libc @same-arch")
|
||||
cpp.use_auto_pack(["lib"])
|
||||
|
||||
package("libgelf-dev")
|
||||
provide("libelf-dev")
|
||||
dep("libgelf (same)")
|
||||
dep("semi-libc-dev @same-arch")
|
||||
cpp.use_auto_pack(["dev"])
|
||||
@@ -0,0 +1,51 @@
|
||||
from lib import cpp
|
||||
from lib.make import *
|
||||
|
||||
version("2.70.0")
|
||||
description("A maintained, feature-rich and performance oriented, neofetch like system information tool.")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_managed("github://fastfetch-cli/fastfetch#2.70.0")
|
||||
|
||||
builddep("shortcut/c")
|
||||
builddep("shortcut/cmake")
|
||||
builddep("libwayland-dev @target")
|
||||
builddep("libvulkan-dev @target")
|
||||
builddep("libdrm-dev @target")
|
||||
builddep("glib-dev @target")
|
||||
builddep("libsqlite-dev @target")
|
||||
builddep("libegl-dev @target")
|
||||
builddep("libdbus-dev @target")
|
||||
builddep("libfreetype-dev @target")
|
||||
builddep("libz-dev @target")
|
||||
builddep("linux-dev @target")
|
||||
builddep("vulkan-headers @target")
|
||||
builddep("libopengl-dev @target")
|
||||
|
||||
|
||||
def build():
|
||||
cpp.cmake([
|
||||
f"-DCMAKE_INSTALL_PREFIX={get_prefix('fastfetch')}",
|
||||
"-DENABLE_VULKAN=ON",
|
||||
"-DENABLE_WAYLAND=ON",
|
||||
"-DENABLE_DRM=ON",
|
||||
"-DENABLE_GIO=ON",
|
||||
"-DENABLE_DBUS=ON",
|
||||
"-DENABLE_SQLITE3=ON",
|
||||
"-DENABLE_EGL=ON",
|
||||
"-DENABLE_FREETYPE=ON",
|
||||
"-DBINARY_LINK_TYPE=dlopen",
|
||||
])
|
||||
cpp.ninja()
|
||||
cpp.ninja_install()
|
||||
|
||||
on_build(build)
|
||||
|
||||
|
||||
def pack(composer):
|
||||
composer.add("bin")
|
||||
composer.makedir("share")
|
||||
composer.add("share/fastfetch")
|
||||
|
||||
package("fastfetch")
|
||||
dep("semi-libc @same-arch")
|
||||
on_pack(pack)
|
||||
@@ -0,0 +1,271 @@
|
||||
import glob
|
||||
import os
|
||||
|
||||
from lib.make import *
|
||||
from lib import cpp, packie
|
||||
|
||||
|
||||
# FIXME: AWS-LC does not yet support some DTLS functions required by FFMpeg.
|
||||
|
||||
|
||||
version("9.0.2")
|
||||
description("FFmpeg is the leading multimedia framework, able to decode, encode, transcode, mux, demux, stream, filter and play pretty much anything that humans and machines have created.")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_url("https://ffmpeg.org/releases/ffmpeg-9.0.2.tar.xz")
|
||||
|
||||
builddep("shortcut/c")
|
||||
builddep("shortcut/autotools")
|
||||
builddep("pkgconf @target")
|
||||
builddep("alsa-lib-dev @target")
|
||||
#builddep("aws-lc-dev @target")
|
||||
builddep("liblcms-dev @target")
|
||||
builddep("libopus-dev @target")
|
||||
builddep("libvorbis-dev @target")
|
||||
builddep("liblzma-dev @target")
|
||||
builddep("libxml2-dev @target")
|
||||
builddep("libogg-dev @target")
|
||||
builddep("libdav1d-dev @target")
|
||||
builddep("libplacebo-dev @target")
|
||||
builddep("libass-dev @target")
|
||||
builddep("libsvtav1-dev @target")
|
||||
builddep("libfontconfig-dev @target")
|
||||
builddep("libfreetype-dev @target")
|
||||
builddep("libfribidi-dev @target")
|
||||
builddep("libharfbuzz-dev @target")
|
||||
builddep("libmp3lame-dev @target")
|
||||
builddep("libwebp-dev @target")
|
||||
builddep("libopenh264-dev @target")
|
||||
builddep("libva-dev @target")
|
||||
builddep("libkvazaar-dev @target")
|
||||
|
||||
|
||||
def build():
|
||||
cpp.configure([
|
||||
"--prefix=/",
|
||||
f"--datadir={get_prefix('ffmpeg-common')}/share/ffmpeg",
|
||||
|
||||
f"--cc={packie.prefix_of('clang')}/bin/clang",
|
||||
|
||||
"--disable-static",
|
||||
"--enable-shared",
|
||||
"--enable-gray",
|
||||
|
||||
"--enable-lcms2",
|
||||
"--enable-libass",
|
||||
"--enable-libdav1d",
|
||||
"--enable-libfontconfig",
|
||||
"--enable-libfreetype",
|
||||
"--enable-libfribidi",
|
||||
"--enable-libharfbuzz",
|
||||
"--enable-libkvazaar",
|
||||
"--enable-libmp3lame",
|
||||
"--enable-libopenh264",
|
||||
"--enable-libopus",
|
||||
"--enable-libplacebo",
|
||||
"--enable-libsvtav1",
|
||||
"--enable-libvorbis",
|
||||
"--enable-libwebp",
|
||||
"--enable-libxml2",
|
||||
#"--enable-openssl",
|
||||
])
|
||||
cpp.make()
|
||||
cpp.make_install()
|
||||
|
||||
on_build(build)
|
||||
|
||||
|
||||
def pack_lib(composer, name):
|
||||
composer.makedir("lib")
|
||||
for i in glob.glob(f"lib/{name}*"):
|
||||
composer.addfile(i)
|
||||
|
||||
def pack_dev(composer, name):
|
||||
devname = f"{name}-dev"
|
||||
composer.makedir("include")
|
||||
composer.add_dir(f"include/{name}")
|
||||
composer.makedirs("lib/pkgconfig")
|
||||
with open(f"lib/pkgconfig/{name}.pc") as fd:
|
||||
pc = fd.read()
|
||||
pc = pc.replace("libdir=//lib", f"libdir={get_prefix(name)}/lib")
|
||||
pc = pc.replace("includedir=//include", f"includedir={get_prefix(devname)}/include")
|
||||
os.remove(f"lib/pkgconfig/{name}.pc")
|
||||
with open(f"lib/pkgconfig/{name}.pc", "wt+") as fd:
|
||||
fd.write(pc)
|
||||
composer.addfile(f"lib/pkgconfig/{name}.pc")
|
||||
|
||||
def pack_data(composer):
|
||||
composer.makedir("share")
|
||||
composer.add("share/ffmpeg")
|
||||
|
||||
package("ffmpeg-common")
|
||||
arch_any()
|
||||
on_pack(pack_data)
|
||||
|
||||
package("libavutil")
|
||||
dep("semi-libc @same-arch")
|
||||
dep("ffmpeg-common (same-version) @any")
|
||||
dep("libva @same-arch")
|
||||
on_pack(lambda c: pack_lib(c, "libavutil"))
|
||||
|
||||
package("libavutil-dev")
|
||||
dep("libavutil (same)")
|
||||
dep("semi-libc-dev @same-arch")
|
||||
dep("ffmpeg-common (same-version) @any")
|
||||
dep("libva-dev @same-arch")
|
||||
on_pack(lambda c: pack_dev(c, "libavutil"))
|
||||
|
||||
package("libswresample")
|
||||
dep("semi-libc @same-arch")
|
||||
dep("libavutil (same)")
|
||||
dep("ffmpeg-common (same-version) @any")
|
||||
on_pack(lambda c: pack_lib(c, "libswresample"))
|
||||
|
||||
package("libswresample-dev")
|
||||
dep("libswresample (same)")
|
||||
dep("semi-libc-dev @same-arch")
|
||||
dep("libavutil-dev (same)")
|
||||
dep("ffmpeg-common (same-version) @any")
|
||||
on_pack(lambda c: pack_dev(c, "libswresample"))
|
||||
|
||||
package("libswscale")
|
||||
dep("semi-libc @same-arch")
|
||||
dep("libavutil (same)")
|
||||
dep("ffmpeg-common (same-version) @any")
|
||||
on_pack(lambda c: pack_lib(c, "libswscale"))
|
||||
|
||||
package("libswscale-dev")
|
||||
dep("libswscale (same)")
|
||||
dep("semi-libc-dev @same-arch")
|
||||
dep("libavutil-dev (same)")
|
||||
dep("ffmpeg-common (same-version) @any")
|
||||
on_pack(lambda c: pack_dev(c, "libswscale"))
|
||||
|
||||
package("libavcodec")
|
||||
dep("semi-libc @same-arch")
|
||||
dep("libswresample (same)")
|
||||
dep("libavutil (same)")
|
||||
dep("liblcms @same-arch")
|
||||
dep("liblzma @same-arch")
|
||||
dep("libdav1d @same-arch")
|
||||
dep("libopus @same-arch")
|
||||
dep("libvorbis @same-arch")
|
||||
dep("libsvtav1 @same-arch")
|
||||
dep("libmp3lame @same-arch")
|
||||
dep("libopenh264 @same-arch")
|
||||
dep("libwebp @same-arch")
|
||||
dep("libkvazaar @same-arch")
|
||||
dep("libva @same-arch")
|
||||
dep("libz @same-arch")
|
||||
dep("ffmpeg-common (same-version) @any")
|
||||
on_pack(lambda c: pack_lib(c, "libavcodec"))
|
||||
|
||||
package("libavcodec-dev")
|
||||
dep("libavcodec (same)")
|
||||
dep("semi-libc-dev @same-arch")
|
||||
dep("libswresample-dev (same)")
|
||||
dep("libavutil-dev (same)")
|
||||
dep("liblcms-dev @same-arch")
|
||||
dep("liblzma-dev @same-arch")
|
||||
dep("libdav1d-dev @same-arch")
|
||||
dep("libopus-dev @same-arch")
|
||||
dep("libvorbis-dev @same-arch")
|
||||
dep("libsvtav1-dev @same-arch")
|
||||
dep("libmp3lame-dev @same-arch")
|
||||
dep("libwebp-dev @same-arch")
|
||||
dep("libkvazaar-dev @same-arch")
|
||||
dep("libopenh264-dev @same-arch")
|
||||
dep("libva-dev @same-arch")
|
||||
dep("libz-dev @same-arch")
|
||||
dep("ffmpeg-common (same-version) @any")
|
||||
on_pack(lambda c: pack_dev(c, "libavcodec"))
|
||||
|
||||
package("libavformat")
|
||||
dep("semi-libc @same-arch")
|
||||
dep("libavcodec (same)")
|
||||
dep("libavutil (same)")
|
||||
dep("libxml2 @same-arch")
|
||||
dep("libbzip2 @same-arch")
|
||||
dep("libz @same-arch")
|
||||
dep("ffmpeg-common (same-version) @any")
|
||||
on_pack(lambda c: pack_lib(c, "libavformat"))
|
||||
|
||||
package("libavformat-dev")
|
||||
dep("libavformat (same)")
|
||||
dep("semi-libc-dev @same-arch")
|
||||
dep("libavcodec-dev (same)")
|
||||
dep("libavutil-dev (same)")
|
||||
dep("libxml2-dev @same-arch")
|
||||
dep("libbzip2-dev @same-arch")
|
||||
dep("libz-dev @same-arch")
|
||||
dep("ffmpeg-common (same-version) @any")
|
||||
on_pack(lambda c: pack_dev(c, "libavformat"))
|
||||
|
||||
package("libavfilter")
|
||||
dep("semi-libc @same-arch")
|
||||
dep("libswscale (same)")
|
||||
dep("libavformat (same)")
|
||||
dep("libavcodec (same)")
|
||||
dep("libswresample (same)")
|
||||
dep("libavutil (same)")
|
||||
dep("liblcms @same-arch")
|
||||
dep("libplacebo @same-arch")
|
||||
dep("libass @same-arch")
|
||||
dep("libharfbuzz @same-arch")
|
||||
dep("libfribidi @same-arch")
|
||||
dep("libfontconfig @same-arch")
|
||||
dep("libfreetype @same-arch")
|
||||
dep("libva @same-arch")
|
||||
dep("ffmpeg-common (same-version) @any")
|
||||
on_pack(lambda c: pack_lib(c, "libavfilter"))
|
||||
|
||||
package("libavfilter-dev")
|
||||
dep("libavfilter (same)")
|
||||
dep("semi-libc-dev @same-arch")
|
||||
dep("libswscale-dev (same)")
|
||||
dep("libavformat-dev (same)")
|
||||
dep("libavcodec-dev (same)")
|
||||
dep("libswresample-dev (same)")
|
||||
dep("libavutil-dev (same)")
|
||||
dep("liblcms-dev @same-arch")
|
||||
dep("libplacebo-dev @same-arch")
|
||||
dep("libass-dev @same-arch")
|
||||
dep("libharfbuzz-dev @same-arch")
|
||||
dep("libfribidi-dev @same-arch")
|
||||
dep("libfontconfig-dev @same-arch")
|
||||
dep("libfreetype-dev @same-arch")
|
||||
dep("libva-dev @same-arch")
|
||||
dep("ffmpeg-common (same-version) @any")
|
||||
on_pack(lambda c: pack_dev(c, "libavfilter"))
|
||||
|
||||
package("libavdevice")
|
||||
dep("semi-libc @same-arch")
|
||||
dep("libavfilter (same)")
|
||||
dep("libavformat (same)")
|
||||
dep("libavcodec (same)")
|
||||
dep("libavutil (same)")
|
||||
dep("alsa-lib @same-arch")
|
||||
dep("ffmpeg-common (same-version) @any")
|
||||
on_pack(lambda c: pack_lib(c, "libavdevice"))
|
||||
|
||||
package("libavdevice-dev")
|
||||
dep("libavdevice (same)")
|
||||
dep("semi-libc-dev @same-arch")
|
||||
dep("libavfilter-dev (same)")
|
||||
dep("libavformat-dev (same)")
|
||||
dep("libavcodec-dev (same)")
|
||||
dep("libavutil-dev (same)")
|
||||
dep("alsa-lib-dev @same-arch")
|
||||
dep("ffmpeg-common (same-version) @any")
|
||||
on_pack(lambda c: pack_dev(c, "libavdevice"))
|
||||
|
||||
package("ffmpeg")
|
||||
dep("libavdevice (same)")
|
||||
dep("libavfilter (same)")
|
||||
dep("libavformat (same)")
|
||||
dep("libavcodec (same)")
|
||||
dep("libswresample (same)")
|
||||
dep("libswscale (same)")
|
||||
dep("libavutil (same)")
|
||||
dep("ffmpeg-common (same-version) @any")
|
||||
dep("semi-libc @same-arch")
|
||||
cpp.use_auto_pack(["bin"])
|
||||
@@ -0,0 +1,28 @@
|
||||
from lib import cpp
|
||||
from lib.make import *
|
||||
|
||||
|
||||
version("1.18.0")
|
||||
description("GoogleTest - Google Testing and Mocking Framework")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_managed("github://google/googletest#v1.18.0")
|
||||
|
||||
builddep("shortcut/c++")
|
||||
builddep("shortcut/cmake")
|
||||
|
||||
|
||||
def build():
|
||||
cpp.cmake([
|
||||
f"-DCMAKE_INSTALL_PREFIX={get_prefix('googletest-dev')}",
|
||||
"-DCMAKE_INSTALL_LIBDIR=lib",
|
||||
])
|
||||
cpp.ninja()
|
||||
cpp.ninja_install()
|
||||
|
||||
on_build(build)
|
||||
|
||||
|
||||
package("googletest-dev")
|
||||
dep("semi-libc-dev @same-arch")
|
||||
dep("libcxx-dev @same-arch")
|
||||
cpp.use_auto_pack(["lib", "dev"])
|
||||
@@ -0,0 +1,61 @@
|
||||
import glob
|
||||
import os
|
||||
import shutil
|
||||
|
||||
from lib.make import *
|
||||
from lib import cpp
|
||||
|
||||
|
||||
version("1.10.8")
|
||||
description("A thin layer of graphic data types")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_url("https://github.com/ebassi/graphene/archive/refs/tags/1.10.8.tar.gz")
|
||||
|
||||
builddep("shortcut/meson")
|
||||
builddep("shortcut/c++")
|
||||
builddep("glib-dev @target")
|
||||
builddep("gobject-introspection @target")
|
||||
builddep("glib-tools")
|
||||
builddep("libexpat")
|
||||
|
||||
|
||||
def build():
|
||||
cpp.meson_setup([
|
||||
"--prefix=/",
|
||||
f"--libdir={get_prefix('libgraphene')}/lib",
|
||||
f"--includedir={get_prefix('libgraphene-dev')}/include",
|
||||
"-Dgobject_types=true",
|
||||
"-Dintrospection=enabled",
|
||||
])
|
||||
cpp.meson_compile()
|
||||
cpp.meson_install()
|
||||
|
||||
on_build(build)
|
||||
|
||||
|
||||
def pack(composer):
|
||||
composer.makedir("lib")
|
||||
for i in glob.glob("lib/*.so*"):
|
||||
composer.add(i)
|
||||
composer.add("lib/girepository-1.0")
|
||||
composer.link_external(f"{get_prefix('libgraphene-dev')}/lib/graphene-1.0", "lib/graphene-1.0")
|
||||
|
||||
package("libgraphene")
|
||||
dep("libgobject @same-arch")
|
||||
dep("libglib @same-arch")
|
||||
dep("semi-libc @same-arch")
|
||||
on_pack(pack)
|
||||
|
||||
def pack_dev(composer):
|
||||
composer.add("include")
|
||||
composer.makedir("include/gir")
|
||||
composer.makedir("lib")
|
||||
composer.add("lib/graphene-1.0")
|
||||
composer.add("lib/pkgconfig")
|
||||
composer.add("share/gir-1.0", "include/gir/gir-1.0")
|
||||
|
||||
package("libgraphene-dev")
|
||||
dep("libgraphene (same)")
|
||||
dep("glib-dev @same-arch")
|
||||
dep("semi-libc-dev @same-arch")
|
||||
on_pack(pack_dev)
|
||||
@@ -0,0 +1,117 @@
|
||||
from lib.make import *
|
||||
from lib import cpp, arch
|
||||
|
||||
|
||||
version("4.23.3")
|
||||
description("The main GTK4 library.")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_url("https://download.gnome.org/sources/gtk/4.23/gtk-4.23.3.tar.xz")
|
||||
|
||||
builddep("shortcut/c++")
|
||||
builddep("shortcut/meson")
|
||||
builddep("glib-dev @target")
|
||||
builddep("gdk-pixbuf-dev @target")
|
||||
builddep("gobject-introspection @target")
|
||||
builddep("glib-tools")
|
||||
builddep("libwayland-dev @target")
|
||||
builddep("wayland-protocols @target")
|
||||
builddep("libpango-dev @target")
|
||||
builddep("libcairo-gobject-dev @target")
|
||||
builddep("libepoxy-dev @target")
|
||||
builddep("libxkbcommon-dev @target")
|
||||
builddep("libgraphene-dev @target")
|
||||
builddep("cups-dev @target")
|
||||
builddep("libvulkan-dev @target")
|
||||
builddep("vulkan-headers @target")
|
||||
builddep("libgstreamer-dev @target")
|
||||
#builddep("libgstgl-dev @target")
|
||||
#builddep("libgstplay-dev @target")
|
||||
builddep("libgstallocators-dev @target")
|
||||
builddep("shaderc")
|
||||
builddep("linux-dev @target")
|
||||
|
||||
|
||||
def build():
|
||||
cpp.meson_setup([
|
||||
"--prefix=/",
|
||||
f"--libdir={get_prefix('libgtk')}/lib",
|
||||
f"--datadir={get_prefix('gtk-common')}/share",
|
||||
f"--includedir={get_prefix('libgtk-dev')}/include",
|
||||
"-Dx11-backend=false",
|
||||
"-Dwayland-backend=true",
|
||||
"-Dmedia-gstreamer=disabled",
|
||||
"-Dprint-cups=enabled",
|
||||
"-Dvulkan=enabled",
|
||||
"-Dintrospection=enabled",
|
||||
])
|
||||
cpp.meson_compile()
|
||||
cpp.meson_install()
|
||||
|
||||
on_build(build)
|
||||
|
||||
|
||||
def pack_common(composer):
|
||||
composer.makedir("share")
|
||||
composer.add("share/mime")
|
||||
composer.add("share/gtk-4.0")
|
||||
|
||||
def pack_bin(composer):
|
||||
composer.makedir("bin")
|
||||
composer.add("bin/gtk4-image-tool")
|
||||
composer.add("bin/gtk4-launch")
|
||||
composer.add("bin/gtk4-query-settings")
|
||||
composer.add("bin/gtk4-update-icon-cache")
|
||||
|
||||
package("gtk-common")
|
||||
arch_any()
|
||||
on_pack(pack_common)
|
||||
|
||||
package("libgtk")
|
||||
dep("gtk-common (same-version) @any")
|
||||
dep("libgmodule @same-arch")
|
||||
dep("libglib @same-arch")
|
||||
dep("libgobject @same-arch")
|
||||
dep("libpango @same-arch")
|
||||
dep("libcairo @same-arch")
|
||||
dep("libharfbuzz @same-arch")
|
||||
dep("libfribidi @same-arch")
|
||||
dep("libcairo-gobject @same-arch")
|
||||
dep("gdk-pixbuf @same-arch")
|
||||
dep("libepoxy @same-arch")
|
||||
dep("libgraphene @same-arch")
|
||||
dep("libfontconfig @same-arch")
|
||||
dep("libvulkan @same-arch")
|
||||
dep("libpng @same-arch")
|
||||
dep("libtiff @same-arch")
|
||||
dep("libjpeg @same-arch")
|
||||
dep("libxkbcommon @same-arch")
|
||||
dep("libwayland @same-arch")
|
||||
dep("libcups @same-arch")
|
||||
dep("semi-libc @same-arch")
|
||||
cpp.use_auto_pack(["lib"])
|
||||
|
||||
package("gtk-bin")
|
||||
dep("libgtk (same)")
|
||||
on_pack(pack_bin)
|
||||
|
||||
package("libgtk-dev")
|
||||
dep("libgtk (same)")
|
||||
dep("glib-dev @same-arch")
|
||||
dep("libpango-dev @same-arch")
|
||||
dep("libcairo-dev @same-arch")
|
||||
dep("libharfbuzz-dev @same-arch")
|
||||
dep("libfribidi-dev @same-arch")
|
||||
dep("libcairo-gobject-dev @same-arch")
|
||||
dep("gdk-pixbuf-dev @same-arch")
|
||||
dep("libepoxy-dev @same-arch")
|
||||
dep("libgraphene-dev @same-arch")
|
||||
dep("libfontconfig-dev @same-arch")
|
||||
dep("libvulkan-dev @same-arch")
|
||||
dep("libpng-dev @same-arch")
|
||||
dep("libtiff-dev @same-arch")
|
||||
dep("libjpeg-dev @same-arch")
|
||||
dep("libxkbcommon-dev @same-arch")
|
||||
dep("libwayland-dev @same-arch")
|
||||
dep("cups-dev @same-arch")
|
||||
dep("semi-libc-dev @same-arch")
|
||||
cpp.use_auto_pack(["dev"])
|
||||
@@ -6,7 +6,9 @@ from lib.make import *
|
||||
from lib import cpp
|
||||
|
||||
|
||||
version("14.3.1")
|
||||
icu_version = "~79"
|
||||
|
||||
version("14.3.1+2")
|
||||
description("HarfBuzz text shaping engine")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_managed("github://harfbuzz/harfbuzz#14.3.1")
|
||||
@@ -14,32 +16,20 @@ source_managed("github://harfbuzz/harfbuzz#14.3.1")
|
||||
builddep("shortcut/meson")
|
||||
builddep("shortcut/c++")
|
||||
builddep("glib-dev @target")
|
||||
builddep("libicu4c-dev @target")
|
||||
builddep(f"libicu4c-dev ({icu_version}) @target")
|
||||
builddep("libcairo-dev @target")
|
||||
builddep("gobject-introspection @target")
|
||||
builddep("glib-tools")
|
||||
|
||||
|
||||
def fix_pc(newpkgname):
|
||||
path = f"lib/pkgconfig/harfbuzz-{newpkgname}.pc"
|
||||
with open(path, 'r') as file:
|
||||
content = file.read()
|
||||
content = content.replace(
|
||||
"-I${includedir}/harfbuzz",
|
||||
f"-I${{includedir}}/harfbuzz -I{get_prefix(f'libharfbuzz-{newpkgname}-dev')}/include/harfbuzz"
|
||||
)
|
||||
content = content.replace("-L${libdir}", f"-L${{libdir}} -L{get_prefix(f'libharfbuzz-{newpkgname}')}/lib")
|
||||
with open(path, 'wt+') as file:
|
||||
file.write(content)
|
||||
|
||||
|
||||
def build():
|
||||
cpp.meson_setup([
|
||||
"--prefix=/",
|
||||
f"--libdir={get_prefix('libharfbuzz')}/lib",
|
||||
f"--bindir={get_prefix('harfbuzz-tools')}/bin",
|
||||
f"--includedir={get_prefix('libharfbuzz-dev')}/include",
|
||||
f"-Dcmakepackagedir={get_prefix('libharfbuzz-dev')}/lib/cmake",
|
||||
"-Dglib=disabled",
|
||||
"-Dglib=enabled",
|
||||
"-Dgobject=enabled",
|
||||
"-Dcairo=enabled",
|
||||
"-Dicu=enabled",
|
||||
@@ -51,50 +41,32 @@ def build():
|
||||
if os.path.exists("../cpp_install"):
|
||||
shutil.rmtree("../cpp_install")
|
||||
cpp.meson_install()
|
||||
os.mkdir("include/gir")
|
||||
os.rename("share/gir-1.0", "include/gir/gir-1.0")
|
||||
fix_pc("gobject")
|
||||
|
||||
on_build(build)
|
||||
|
||||
|
||||
def pack_glob(composer, globs, excluded_kw=[]):
|
||||
for iglob in globs:
|
||||
for i in glob.glob(iglob):
|
||||
if any(excluded_pattern in i for excluded_pattern in excluded_kw):
|
||||
continue
|
||||
composer.makedirs(os.path.dirname(i))
|
||||
if os.path.islink(i) or os.path.isfile(i):
|
||||
composer.addfile(i)
|
||||
else:
|
||||
composer.add_dir(i)
|
||||
|
||||
|
||||
package("libharfbuzz")
|
||||
dep("libfreetype @same-arch")
|
||||
dep("libcairo @same-arch")
|
||||
dep("libicu4c @same-arch")
|
||||
dep(f"libicu4c ({icu_version}) @same-arch")
|
||||
dep("libpng @same-arch")
|
||||
dep("libglib @same-arch")
|
||||
dep("libgobject @same-arch")
|
||||
dep("libz @same-arch")
|
||||
on_pack(lambda c: pack_glob(c, ["lib/*.so*"], ["gobject"]))
|
||||
provide("libharfbuzz-gobject @same-arch")
|
||||
cpp.use_auto_pack(["lib"])
|
||||
|
||||
package("harfbuzz-tools")
|
||||
dep("libharfbuzz (same)")
|
||||
cpp.use_auto_pack(["bin"])
|
||||
|
||||
package("libharfbuzz-dev")
|
||||
dep("libharfbuzz (same)")
|
||||
dep("libfreetype-dev @same-arch")
|
||||
dep("libcairo-dev @same-arch")
|
||||
dep("libicu4c-dev @same-arch")
|
||||
dep(f"libicu4c-dev ({icu_version}) @same-arch")
|
||||
dep("libpng-dev @same-arch")
|
||||
dep("libz-dev @same-arch")
|
||||
on_pack(lambda c: pack_glob(c, ["lib/cmake", "lib/pkgconfig/*", "include/harfbuzz/*"], ["gobject"]))
|
||||
|
||||
package("libharfbuzz-gobject")
|
||||
dep("libharfbuzz (same)")
|
||||
dep("libglib @same-arch")
|
||||
dep("libgobject @same-arch")
|
||||
on_pack(lambda c: pack_glob(c, ["lib/*gobject*", "lib/girepository-1.0"]))
|
||||
|
||||
package("libharfbuzz-gobject-dev")
|
||||
dep("libharfbuzz-gobject (same)")
|
||||
dep("libharfbuzz-dev (same)")
|
||||
dep("glib-dev @same-arch")
|
||||
on_pack(lambda c: pack_glob(c, ["lib/pkgconfig/*gobject*", "include/harfbuzz/*gobject*", "include/gir"]))
|
||||
provide("libharfbuzz-gobject-dev @same-arch")
|
||||
cpp.use_auto_pack(["dev"])
|
||||
+13
-16
@@ -3,35 +3,32 @@ import os
|
||||
from lib import cpp
|
||||
from lib.make import *
|
||||
|
||||
version("78.3")
|
||||
|
||||
version("79.1")
|
||||
description("a mature, widely used set of C/C++ libraries providing Unicode and Globalization support for software applications")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_url(
|
||||
"https://github.com/unicode-org/icu/releases/download/release-78.3/icu4c-78.3-sources.tgz"
|
||||
)
|
||||
source_managed("github://unicode-org/icu#release-79.1")
|
||||
|
||||
builddep("shortcut/c++")
|
||||
builddep("shortcut/autotools")
|
||||
|
||||
|
||||
def build():
|
||||
os.chdir("source")
|
||||
cpp.configure(
|
||||
[
|
||||
"--enable-plugins",
|
||||
"--prefix=/",
|
||||
f"--bindir={get_prefix('icu4c')}/bin",
|
||||
f"--sbindir={get_prefix('icu4c')}/sbin",
|
||||
f"--libdir={get_prefix('libicu4c')}/lib",
|
||||
f"--includedir={get_prefix('libicu4c-dev')}/include",
|
||||
]
|
||||
)
|
||||
os.chdir("icu4c/source")
|
||||
cpp.configure([
|
||||
"--enable-plugins",
|
||||
"--prefix=/",
|
||||
f"--bindir={get_prefix('icu4c')}/bin",
|
||||
f"--sbindir={get_prefix('icu4c')}/sbin",
|
||||
f"--libdir={get_prefix('libicu4c')}/lib",
|
||||
f"--includedir={get_prefix('libicu4c-dev')}/include",
|
||||
])
|
||||
cpp.make()
|
||||
cpp.make_install()
|
||||
|
||||
|
||||
on_build(build)
|
||||
|
||||
|
||||
package("libicu4c")
|
||||
cpp.use_auto_pack(["lib"])
|
||||
dep("semi-libc @same-arch")
|
||||
|
||||
@@ -0,0 +1,36 @@
|
||||
from lib import cpp
|
||||
from lib.make import *
|
||||
|
||||
version("1.2025.6.5")
|
||||
description("The iputils package is set of small old utilities for Linux networking.")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_managed("github://iputils/iputils#20250605")
|
||||
|
||||
builddep("shortcut/c")
|
||||
builddep("shortcut/meson")
|
||||
builddep("linux-dev @target")
|
||||
builddep("libcap-dev @target")
|
||||
builddep("libintl-dev @target")
|
||||
builddep("gettext")
|
||||
builddep("libxslt-tools")
|
||||
|
||||
|
||||
def build():
|
||||
cpp.meson_setup([
|
||||
f"--prefix={get_prefix('iputils')}",
|
||||
"-DUSE_CAP=true",
|
||||
"-DUSE_IDN=false",
|
||||
"-DUSE_GETTEXT=true",
|
||||
])
|
||||
cpp.meson_compile()
|
||||
cpp.meson_install()
|
||||
|
||||
on_build(build)
|
||||
|
||||
|
||||
package("iputils")
|
||||
dep("semi-libc @same-arch")
|
||||
dep("libcap @same-arch")
|
||||
provide("ping")
|
||||
provide("arping")
|
||||
cpp.use_auto_pack(["bin"])
|
||||
@@ -1,7 +1,7 @@
|
||||
from lib import cpp, arch
|
||||
from lib.make import *
|
||||
|
||||
version("1.34")
|
||||
version("1.34+1")
|
||||
description("a set of tools to handle common tasks with Linux kernel modules like insert, remove, list, check properties, resolve dependencies and aliases")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_managed("github://kmod-project/kmod#v34")
|
||||
@@ -23,7 +23,7 @@ def build():
|
||||
f"-Dincludedir={get_prefix('libkmod-dev')}/include",
|
||||
f"-Dbindir={get_prefix('kmod')}/bin",
|
||||
f"-Ddistconfdir={get_prefix('libkmod')}/share",
|
||||
"-Dmoduledir=/lib/lkm",
|
||||
"-Dmoduledir=/lib/modules",
|
||||
"-Dtools=true",
|
||||
"-Ddlopen=all",
|
||||
"-Dmanpages=false",
|
||||
|
||||
@@ -0,0 +1,39 @@
|
||||
from lib.make import *
|
||||
from lib import cpp
|
||||
|
||||
|
||||
version("2.3.2")
|
||||
description("An open-source HEVC encoder")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_managed("github://ultravideo/kvazaar#v2.3.2")
|
||||
|
||||
builddep("shortcut/c")
|
||||
builddep("shortcut/cmake")
|
||||
|
||||
|
||||
def build():
|
||||
cpp.cmake([
|
||||
"-DUSE_RANGE_EXTENSION=ON",
|
||||
f"-DCMAKE_INSTALL_LIBDIR={get_prefix('libkvazaar')}/lib",
|
||||
f"-DCMAKE_INSTALL_BINDIR={get_prefix('kvazaar')}/bin",
|
||||
f"-DCMAKE_INSTALL_INCLUDEDIR={get_prefix('libkvazaar-dev')}/include",
|
||||
])
|
||||
cpp.ninja()
|
||||
cpp.ninja_install()
|
||||
|
||||
on_build(build)
|
||||
|
||||
|
||||
package("libkvazaar")
|
||||
dep("semi-libc @same-arch")
|
||||
cpp.use_auto_pack(["lib"])
|
||||
|
||||
package("kvazaar")
|
||||
dep("libkvazaar (same)")
|
||||
dep("semi-libc @same-arch")
|
||||
cpp.use_auto_pack(["bin"])
|
||||
|
||||
package("libkvazaar-dev")
|
||||
dep("libkvazaar (same)")
|
||||
dep("semi-libc-dev @same-arch")
|
||||
cpp.use_auto_pack(["dev"])
|
||||
@@ -2,10 +2,10 @@ import lib.cpp as cpp
|
||||
from lib.make import *
|
||||
|
||||
|
||||
version("3.8.9")
|
||||
version("3.8.11")
|
||||
description("Multi-format archive and compression library")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_managed("github://libarchive/libarchive#v3.8.9")
|
||||
source_managed("github://libarchive/libarchive#v3.8.11")
|
||||
|
||||
builddep("shortcut/c")
|
||||
builddep("shortcut/cmake")
|
||||
@@ -30,16 +30,15 @@ on_build(build)
|
||||
|
||||
|
||||
package("libarchive")
|
||||
cpp.use_auto_pack(["lib"])
|
||||
dep("libcrypto@same-arch")
|
||||
dep("libzstd @same-arch")
|
||||
dep("libz @same-arch")
|
||||
dep("liblzma @same-arch")
|
||||
dep("semi-libc @same-arch")
|
||||
dep("libzstd @same-arch")
|
||||
cpp.use_auto_pack(["lib"])
|
||||
|
||||
package("libarchive-tools")
|
||||
cpp.use_auto_pack(["bin"])
|
||||
dep("libarchive (same)")
|
||||
provide("tar")
|
||||
provide("cpio")
|
||||
@@ -47,8 +46,9 @@ provide("unzip")
|
||||
link("bin/bsdtar", "/bin/tar")
|
||||
link("bin/bsdcpio", "/bin/cpio")
|
||||
link("bin/bsdunzip", "/bin/unzip")
|
||||
cpp.use_auto_pack(["bin"])
|
||||
|
||||
package("libarchive-dev")
|
||||
cpp.use_auto_pack(["dev"])
|
||||
dep("libarchive (same)")
|
||||
dep("aws-lc-dev @same-arch")
|
||||
cpp.use_auto_pack(["dev"])
|
||||
@@ -0,0 +1,52 @@
|
||||
from lib.make import *
|
||||
from lib import cpp
|
||||
|
||||
|
||||
version("2.1.13")
|
||||
description("Event notification library")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_managed("github://libevent/libevent#release-2.1.13-stable")
|
||||
|
||||
builddep("shortcut/c")
|
||||
builddep("shortcut/cmake")
|
||||
builddep("aws-lc-dev @target")
|
||||
|
||||
|
||||
def fix_pc(path):
|
||||
with open(path) as fd:
|
||||
pc = fd.read()
|
||||
pc = pc.replace("libdir=/usr/local/lib", f"libdir={get_prefix('libevent')}/lib")
|
||||
pc = pc.replace("includedir=/usr/local/include", f"includedir={get_prefix('libevent-dev')}/include")
|
||||
pc = pc.replace("/usr/local", "/")
|
||||
with open(path, 'wt+') as fd:
|
||||
fd.write(pc)
|
||||
|
||||
def build():
|
||||
cpp.cmake([
|
||||
"-DCMAKE_POLICY_VERSION_MINIMUM=3.5",
|
||||
"-DCMAKE_INSTALL_PREFIX=/usr/local",
|
||||
f"-DCMAKE_INSTALL_LIBDIR={get_prefix('libevent')}/lib",
|
||||
f"-DCMAKE_INSTALL_INCLUDEDIR={get_prefix('libevent-dev')}/include",
|
||||
])
|
||||
cpp.ninja()
|
||||
cpp.ninja_install()
|
||||
fix_pc("lib/pkgconfig/libevent.pc")
|
||||
fix_pc("lib/pkgconfig/libevent_core.pc")
|
||||
fix_pc("lib/pkgconfig/libevent_extra.pc")
|
||||
fix_pc("lib/pkgconfig/libevent_openssl.pc")
|
||||
fix_pc("lib/pkgconfig/libevent_pthreads.pc")
|
||||
|
||||
on_build(build)
|
||||
|
||||
|
||||
package("libevent")
|
||||
dep("semi-libc @same-arch")
|
||||
dep("libcrypto @same-arch")
|
||||
dep("libssl @same-arch")
|
||||
cpp.use_auto_pack(["lib"])
|
||||
|
||||
package("libevent-dev")
|
||||
dep("libevent (same)")
|
||||
dep("semi-libc-dev @same-arch")
|
||||
dep("aws-lc-dev @same-arch")
|
||||
cpp.use_auto_pack(["dev"])
|
||||
@@ -0,0 +1,48 @@
|
||||
from lib import arch, cpp
|
||||
from lib.make import *
|
||||
|
||||
|
||||
version("1.9.7")
|
||||
description("A cross-platform, linkable library implementation of Git that you can use in your application.")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_managed("github://libgit2/libgit2#v1.9.7")
|
||||
|
||||
builddep("shortcut/c")
|
||||
builddep("shortcut/cmake")
|
||||
builddep("aws-lc-dev @target")
|
||||
builddep("libz-dev @target")
|
||||
|
||||
|
||||
def build():
|
||||
cpp.cmake([
|
||||
"-DCMAKE_C_STANDARD=99",
|
||||
"-DCMAKE_INSTALL_PREFIX=/",
|
||||
f"-DCMAKE_INSTALL_LIBDIR={get_prefix('libgit2')}/lib",
|
||||
f"-DCMAKE_INSTALL_INCLUDEDIR={get_prefix('libgit2-dev')}/include",
|
||||
"-DUSE_HTTPS=OpenSSL",
|
||||
"-DUSE_SHA256=OpenSSL",
|
||||
"-DUSE_BUNDLED_ZLIB=OFF",
|
||||
"-DUSE_NTLMCLIENT=OFF",
|
||||
])
|
||||
cpp.ninja()
|
||||
cpp.ninja_install()
|
||||
|
||||
on_build(build)
|
||||
|
||||
|
||||
package("libgit2")
|
||||
dep("semi-libc @same-arch")
|
||||
dep("libssl @same-arch")
|
||||
dep("libcrypto @same-arch")
|
||||
cpp.use_auto_pack(["lib"])
|
||||
|
||||
package("git2")
|
||||
dep("semi-libc @same-arch")
|
||||
dep("libgit2 (same)")
|
||||
cpp.use_auto_pack(["bin"])
|
||||
|
||||
package("libgit2-dev")
|
||||
dep("libgit2 (same)")
|
||||
dep("aws-lc-dev @same-arch")
|
||||
dep("semi-libc-dev @same-arch")
|
||||
cpp.use_auto_pack(["dev"])
|
||||
@@ -2,14 +2,16 @@ from lib import cpp, arch
|
||||
from lib.make import *
|
||||
|
||||
|
||||
version("0.23.1")
|
||||
icu_version = "~79"
|
||||
|
||||
version("0.23.3")
|
||||
description("C library for the Public Suffix List")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_url("https://github.com/rockdaboot/libpsl/releases/download/0.23.1/libpsl-0.23.1.tar.gz")
|
||||
source_url("https://github.com/rockdaboot/libpsl/releases/download/0.23.3/libpsl-0.23.3.tar.gz")
|
||||
|
||||
builddep("shortcut/c")
|
||||
builddep("shortcut/autotools")
|
||||
builddep("libicu4c-dev @target")
|
||||
builddep(f"libicu4c-dev ({icu_version}) @target")
|
||||
builddep("pkgconf")
|
||||
|
||||
|
||||
@@ -29,7 +31,7 @@ on_build(build)
|
||||
|
||||
package("libpsl")
|
||||
dep("semi-libc @same-arch")
|
||||
dep("libicu4c @same-arch")
|
||||
dep(f"libicu4c ({icu_version}) @same-arch")
|
||||
cpp.use_auto_pack(["lib"])
|
||||
|
||||
package("libpsl-tools")
|
||||
@@ -38,4 +40,6 @@ cpp.use_auto_pack(["bin"])
|
||||
|
||||
package("libpsl-dev")
|
||||
dep("libpsl (same)")
|
||||
dep("semi-libc-dev @same-arch")
|
||||
dep(f"libicu4c-dev ({icu_version}) @same-arch")
|
||||
cpp.use_auto_pack(["dev"])
|
||||
@@ -0,0 +1,44 @@
|
||||
import os
|
||||
|
||||
from lib import cpp
|
||||
from lib.make import *
|
||||
|
||||
|
||||
version("1.9.1")
|
||||
description("Library for parsing Linux raw trace events")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_url("https://git.kernel.org/pub/scm/libs/libtrace/libtraceevent.git/snapshot/libtraceevent-1.9.1.tar.gz")
|
||||
|
||||
builddep("shortcut/c")
|
||||
builddep("shortcut/autotools")
|
||||
|
||||
|
||||
def build():
|
||||
cpp.make()
|
||||
cpp.make_install([
|
||||
"prefix=/",
|
||||
f"libdir={get_prefix('libtraceevent')}/lib",
|
||||
f"includedir={get_prefix('libtraceevent-dev')}/include/traceevent",
|
||||
"DESTDIR=../cpp_install"
|
||||
])
|
||||
os.makedirs("lib/pkgconfig", exist_ok=True)
|
||||
with open(f"lib/{current_target()}/pkgconfig/libtraceevent.pc") as fd:
|
||||
pc = fd.read()
|
||||
pc = pc.replace("prefix=/usr/local", "/")
|
||||
pc = pc.replace("libdir=${prefix}/lib64", f"libdir={get_prefix('libtraceevent')}/lib")
|
||||
pc = pc.replace("includedir=${prefix}/include", f"includedir={get_prefix('libtraceevent-dev')}/include")
|
||||
with open("lib/pkgconfig/libtraceevent.pc", "wt+") as fd:
|
||||
fd.write(pc)
|
||||
|
||||
on_build(build)
|
||||
|
||||
|
||||
package("libtraceevent")
|
||||
dep("semi-libc @same-arch")
|
||||
cpp.use_auto_pack(["lib"])
|
||||
|
||||
package("libtraceevent-dev")
|
||||
dep("libtraceevent (same)")
|
||||
dep("semi-libc-dev @same-arch")
|
||||
dep("linux-dev @same-arch")
|
||||
cpp.use_auto_pack(["dev"])
|
||||
@@ -0,0 +1,13 @@
|
||||
--- a/configure 2026-08-20 19:06:35.000000000 +0000
|
||||
+++ b/configure 2026-10-30 08:14:15.195189154 +0000
|
||||
@@ -195,10 +195,6 @@
|
||||
[ -f "${source_path}/${t}.mk" ] && enable_feature ${t}
|
||||
done
|
||||
|
||||
-if ! diff --version >/dev/null; then
|
||||
- die "diff missing: Try installing diffutils via your package manager."
|
||||
-fi
|
||||
-
|
||||
if ! perl --version >/dev/null; then
|
||||
die "Perl is required to build"
|
||||
fi
|
||||
@@ -0,0 +1,49 @@
|
||||
from lib.make import *
|
||||
from lib import cpp, arch
|
||||
|
||||
|
||||
version("1.17.0")
|
||||
description("the WebM VP8/VP9 Codec SDK")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_managed("github://webmproject/libvpx#v1.17.0")
|
||||
|
||||
builddep("shortcut/c++")
|
||||
builddep("shortcut/autotools")
|
||||
builddep("perl")
|
||||
|
||||
|
||||
def fix_pc():
|
||||
with open('lib/pkgconfig/vpx.pc') as fd:
|
||||
pc = fd.read()
|
||||
pc = pc.replace("prefix=/usr/local", "prefix=/")
|
||||
pc = pc.replace("libdir=${prefix}/lib", f"libdir={get_prefix('libvpx')}/lib")
|
||||
pc = pc.replace("includedir=${prefix}/include", f"includedir={get_prefix('libvpx-dev')}/include")
|
||||
with open('lib/pkgconfig/vpx.pc', 'wt+') as fd:
|
||||
fd.write(pc)
|
||||
|
||||
def build():
|
||||
libvpx_target = arch.get_target().replace("-semios-linux", "-linux-gcc")
|
||||
libvpx_target = libvpx_target.replace("aarch64", "arm64")
|
||||
cpp.configure([
|
||||
f"--target={libvpx_target}",
|
||||
"--enable-shared",
|
||||
])
|
||||
cpp.make(["HAVE_GNU_STRIP=no"])
|
||||
cpp.make_install()
|
||||
fix_pc()
|
||||
|
||||
on_build(build)
|
||||
|
||||
|
||||
package("libvpx")
|
||||
dep("semi-libc @same-arch")
|
||||
cpp.use_auto_pack(["lib"])
|
||||
|
||||
package("libvpx-tools")
|
||||
dep("libvpx (same)")
|
||||
cpp.use_auto_pack(["bin"])
|
||||
|
||||
package("libvpx-dev")
|
||||
dep("libvpx (same)")
|
||||
dep("semi-libc-dev @same-arch")
|
||||
cpp.use_auto_pack(["dev"])
|
||||
@@ -0,0 +1,63 @@
|
||||
import os
|
||||
import shutil
|
||||
|
||||
from lib.make import *
|
||||
from lib import cpp, python, arch
|
||||
|
||||
|
||||
upstream_version = "1.1.45"
|
||||
|
||||
version(upstream_version)
|
||||
description("an XSLT processor based on libxml2")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_url("https://download.gnome.org/sources/libxslt/1.1/libxslt-1.1.45.tar.xz")
|
||||
|
||||
builddep("shortcut/c")
|
||||
builddep("shortcut/autotools")
|
||||
builddep("pkgconf @target")
|
||||
builddep("libxml2-dev @target")
|
||||
builddep("libpython-dev @target")
|
||||
builddep("libexpat")
|
||||
|
||||
|
||||
def build():
|
||||
cpp.configure([
|
||||
"--prefix=/",
|
||||
f"--libdir={get_prefix('libxslt')}/lib",
|
||||
f"--bindir={get_prefix('libxslt-tools')}/bin",
|
||||
f"--includedir={get_prefix('libxslt-dev')}/include",
|
||||
"--without-debug",
|
||||
])
|
||||
cpp.make()
|
||||
if os.path.exists("../cpp_install"):
|
||||
shutil.rmtree("../cpp_install")
|
||||
cpp.make_install()
|
||||
os.mkdir("py")
|
||||
os.rename(f"lib/{arch.get_target()}/python{python.PY3_VERSION}", "py/arch")
|
||||
os.rename(f"lib/python{python.PY3_VERSION}", "py/nonarch")
|
||||
|
||||
on_build(build)
|
||||
|
||||
|
||||
package("libxslt")
|
||||
dep("libxml2 @same-arch")
|
||||
cpp.use_auto_pack(["lib"])
|
||||
|
||||
package("libxslt-tools")
|
||||
dep("libxslt (same)")
|
||||
cpp.use_auto_pack(["bin"])
|
||||
|
||||
package("libxslt-dev")
|
||||
dep("libxslt (same)")
|
||||
dep("libxml2-dev @same-arch")
|
||||
cpp.use_auto_pack(["dev"])
|
||||
|
||||
def pack_py(composer):
|
||||
composer.makedir("lib")
|
||||
composer.add_dir("py/arch", f"lib/python{python.PY3_VERSION}", merge=True)
|
||||
composer.add_dir("py/nonarch", f"lib/python{python.PY3_VERSION}", merge=True)
|
||||
|
||||
package("libxslt.py")
|
||||
python.version(upstream_version)
|
||||
dep(f"libxslt (={upstream_version}) @same-arch")
|
||||
on_pack(pack_py)
|
||||
@@ -0,0 +1,7 @@
|
||||
# SemiOS PAM service config for un-as operations,
|
||||
# like sudo.
|
||||
|
||||
auth required pam_semios.so
|
||||
account required pam_semios.so
|
||||
password required pam_permit.so
|
||||
session required pam_permit.so
|
||||
@@ -5,7 +5,7 @@ from lib import arch, cpp
|
||||
from lib.make import *
|
||||
|
||||
|
||||
version("1.7.2")
|
||||
version("1.7.2+1")
|
||||
description("Linux PAM (Pluggable Authentication Modules for Linux) project")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_url("https://github.com/linux-pam/linux-pam/releases/download/v1.7.2/Linux-PAM-1.7.2.tar.xz")
|
||||
|
||||
@@ -0,0 +1,45 @@
|
||||
--- a/scripts/sign-file.c 2026-10-30 12:09:52.000000000 +0000
|
||||
+++ b/scripts/sign-file.c 2026-11-16 12:19:52.001911278 +0000
|
||||
@@ -201,9 +201,9 @@
|
||||
X509 *x509;
|
||||
BIO *bd, *bm;
|
||||
int opt, n;
|
||||
- OpenSSL_add_all_algorithms();
|
||||
- ERR_load_crypto_strings();
|
||||
- ERR_clear_error();
|
||||
+ //OpenSSL_add_all_algorithms();
|
||||
+ //ERR_load_crypto_strings();
|
||||
+ //ERR_clear_error();
|
||||
|
||||
key_pass = getenv("KBUILD_SIGN_PIN");
|
||||
|
||||
|
||||
--- a/scripts/sign-file.c 2026-11-16 12:21:08.614514667 +0000
|
||||
+++ b/scripts/sign-file.c 2026-11-16 12:21:45.134000624 +0000
|
||||
@@ -254,7 +254,7 @@
|
||||
x509 = read_x509(x509_name);
|
||||
|
||||
/* Digest the module data. */
|
||||
- OpenSSL_add_all_digests();
|
||||
+ //OpenSSL_add_all_digests();
|
||||
drain_openssl_errors(__LINE__, 0);
|
||||
digest_algo = EVP_get_digestbyname(hash_algo);
|
||||
ERR(!digest_algo, "EVP_get_digestbyname");
|
||||
|
||||
|
||||
--- a/certs/extract-cert.c 2026-11-16 12:39:29.726151104 +0000
|
||||
+++ b/certs/extract-cert.c 2026-11-16 12:50:19.821752865 +0000
|
||||
@@ -127,9 +127,9 @@
|
||||
char *cert_src;
|
||||
char *verbose_env;
|
||||
|
||||
- OpenSSL_add_all_algorithms();
|
||||
- ERR_load_crypto_strings();
|
||||
- ERR_clear_error();
|
||||
+ //OpenSSL_add_all_algorithms();
|
||||
+ //ERR_load_crypto_strings();
|
||||
+ //ERR_clear_error();
|
||||
|
||||
verbose_env = getenv("KBUILD_VERBOSE");
|
||||
if (verbose_env && strchr(verbose_env, '1'))
|
||||
|
||||
+56
-10
@@ -6,7 +6,7 @@ from lib import cpp, arch, packie
|
||||
from lib.make import *
|
||||
|
||||
|
||||
upstream_version = "7.2.12"
|
||||
upstream_version = "7.3.1"
|
||||
|
||||
version(f"{upstream_version}")
|
||||
description("the Linux operating system kernel")
|
||||
@@ -16,24 +16,37 @@ source_url(f"https://cdn.kernel.org/pub/linux/kernel/v7.x/linux-{upstream_versio
|
||||
builddep("shortcut/c")
|
||||
builddep("shortcut/autotools")
|
||||
builddep("libncurses-dev")
|
||||
builddep("aws-lc-dev @target")
|
||||
builddep("aws-lc-tools")
|
||||
builddep("airboot-linux-stage2-mkinitramfs")
|
||||
builddep("airboot-linux-stage2-arch @target")
|
||||
builddep("libexpat")
|
||||
builddep("openssl-dev")
|
||||
builddep("openssl-tools")
|
||||
builddep("flex")
|
||||
builddep("bison")
|
||||
builddep("bc")
|
||||
builddep("gzip")
|
||||
builddep("zstd")
|
||||
builddep("bash")
|
||||
builddep("util-linux-text")
|
||||
builddep("rsync (=3.5.2)")
|
||||
builddep("kmod")
|
||||
builddep("airboot-linux-stage2-mkinitramfs")
|
||||
builddep("airboot-linux-stage2-arch @target")
|
||||
builddep("libgelf-dev @target")
|
||||
builddep("libtraceevent-dev @target")
|
||||
|
||||
|
||||
def get_arch():
|
||||
return arch.get_target().split("-")[0].replace("aarch64", "arm64")
|
||||
return arch.get_target().split("-")[0].replace("riscv64", "riscv").replace("aarch64", "arm64")
|
||||
|
||||
def get_variant():
|
||||
return os.environ.get("LINUX_VARIANT")
|
||||
|
||||
|
||||
def prepare_atomenv():
|
||||
if in_atomic():
|
||||
packie.select("/bin/openssl", "openssl-tools")
|
||||
# FIXME: Currently, `bash` do not provide link `/bin/sh`
|
||||
os.system("ln -sf /bin/bash /bin/sh")
|
||||
|
||||
def prepare_config():
|
||||
config_name = get_arch()
|
||||
if get_variant():
|
||||
@@ -43,7 +56,13 @@ def prepare_config():
|
||||
shutil.copy2(config_file, ".config")
|
||||
|
||||
def make_install_everything():
|
||||
makeopts = [f"ARCH={get_arch()}", "LLVM=1", f"HOSTCC={os.environ.get('HOSTCC', 'cc')}"]
|
||||
makeopts = [
|
||||
f"ARCH={get_arch()}",
|
||||
"LLVM=1",
|
||||
f"CC={packie.prefix_of('clang')}/bin/clang",
|
||||
f"HOSTCC={os.environ.get('HOSTCC', 'cc')}",
|
||||
f"KCFLAGS=-isystem {packie.prefix_of('clang')}/lib/clang/23/include",
|
||||
]
|
||||
|
||||
cpp.make(makeopts + ["olddefconfig"])
|
||||
cpp.make(makeopts)
|
||||
@@ -54,10 +73,23 @@ def make_install_everything():
|
||||
)
|
||||
os.remove(f"../kmod_install/lib/modules/{upstream_version}/build")
|
||||
|
||||
def make_perf():
|
||||
oldpwd = os.getcwd()
|
||||
os.chdir("tools/perf")
|
||||
cpp.make([
|
||||
f"ARCH={get_arch()}",
|
||||
"LLVM=1",
|
||||
"NO_LIBDW=1",
|
||||
"NO_LIBELF=0",
|
||||
"NO_JEVENTS=1",
|
||||
"EXTRA_CFLAGS=-Wno-error=unused-but-set-global -Wno-error=initializer-overrides",
|
||||
])
|
||||
os.chdir(oldpwd)
|
||||
|
||||
def create_initramfs():
|
||||
asp_prefix = packie.prefix_of(f"airboot-linux-stage2-arch @{arch.get_target()}")
|
||||
subprocess.run([
|
||||
"mkinitramfs",
|
||||
f"{packie.prefix_of('airboot-linux-stage2-mkinitramfs')}/bin/mkinitramfs",
|
||||
"-a", f"{asp_prefix}/data",
|
||||
"-o", f"{os.getcwd()}/../initramfs.img",
|
||||
"-m", f"{os.getcwd()}/../kmod_install",
|
||||
@@ -69,15 +101,17 @@ def generate_info():
|
||||
info += f"KERNEL_INFO_UPSTREAM_VERSION={upstream_version}\n"
|
||||
info += f"KERNEL_INFO_VARIANT={get_variant() or ''}\n"
|
||||
info += f"KERNEL_INFO_ARCHITECTURE={get_arch()}\n"
|
||||
with open(f"../KernelInfo.txt", "wt+") as fd:
|
||||
with open("../KernelInfo.txt", "wt+") as fd:
|
||||
fd.write(info)
|
||||
|
||||
|
||||
def build():
|
||||
prepare_atomenv()
|
||||
prepare_config()
|
||||
make_install_everything()
|
||||
create_initramfs()
|
||||
generate_info()
|
||||
make_perf()
|
||||
|
||||
on_build(build)
|
||||
|
||||
@@ -104,16 +138,28 @@ def pack_linux(composer):
|
||||
composer.addfile(initramfs_origin, "initramfs.img")
|
||||
composer.addfile("../KernelInfo.txt", "KernelInfo.txt")
|
||||
|
||||
def pack_perf(composer):
|
||||
composer.makedir("bin")
|
||||
composer.add("tools/perf/perf", "bin/perf")
|
||||
|
||||
base_name = "linux"
|
||||
if os.environ.get("LINUX_VARIANT"):
|
||||
base_name += "-" + os.environ["LINUX_VARIANT"]
|
||||
|
||||
|
||||
package(f"{base_name}")
|
||||
configure_script("configure/kernel-install")
|
||||
configure_script("configure/kernel-remove")
|
||||
link("modules", f"/lib/modules/{upstream_version}")
|
||||
on_pack(pack_linux)
|
||||
|
||||
package(f"{base_name}-dev")
|
||||
description("the Linux operating system kernel -- development files (e.g. headers)")
|
||||
on_pack(pack_linux_dev)
|
||||
|
||||
if base_name == "linux":
|
||||
package("perf")
|
||||
description("the Linux operating system kernel -- performance counter tool")
|
||||
dep("semi-libc @same-arch")
|
||||
dep("libgelf @same-arch")
|
||||
dep("libtraceevent @same-arch")
|
||||
on_pack(pack_perf)
|
||||
@@ -0,0 +1,3 @@
|
||||
$-Wl,-L/lib/aarch64-semios-linux
|
||||
-B/lib/aarch64-semios-linux
|
||||
-rtlib=compiler-rt
|
||||
@@ -0,0 +1 @@
|
||||
-stdlib=libc++
|
||||
@@ -0,0 +1,3 @@
|
||||
$-Wl,-L/lib/riscv64-semios-linux
|
||||
-B/lib/riscv64-semios-linux
|
||||
-rtlib=compiler-rt
|
||||
@@ -0,0 +1,3 @@
|
||||
$-Wl,-L/lib/wasm32-semios-wasip3
|
||||
-B/lib/wasm32-semios-wasip3
|
||||
-rtlib=compiler-rt
|
||||
@@ -0,0 +1,3 @@
|
||||
$-Wl,-L/lib/x86_64-semios-linux
|
||||
-B/lib/x86_64-semios-linux
|
||||
-rtlib=compiler-rt
|
||||
@@ -4,23 +4,23 @@ import shutil
|
||||
import glob
|
||||
|
||||
import lib
|
||||
from lib import arch, cpp
|
||||
from lib import cpp, packie
|
||||
from lib.make import *
|
||||
|
||||
pkgver = "23.1.3"
|
||||
|
||||
pkgver = "23.1.5"
|
||||
[pkgver_major, pkgver_minor, pkgver_rev] = pkgver.split(".")
|
||||
|
||||
version(pkgver)
|
||||
description("a collection of modular and reusable compiler and toolchain technologies")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_managed("github://llvm/llvm-project#llvmorg-23.1.3")
|
||||
source_managed("github://llvm/llvm-project#llvmorg-23.1.5")
|
||||
|
||||
builddep("shortcut/c++")
|
||||
builddep("shortcut/cmake")
|
||||
builddep("linux-dev @target")
|
||||
builddep("libffi-dev @target")
|
||||
builddep("libz-ng-dev @target")
|
||||
builddep("aws-lc-dev @target")
|
||||
builddep("libunwind-dev @target")
|
||||
|
||||
|
||||
@@ -28,7 +28,7 @@ srcdir = None
|
||||
packname = None
|
||||
|
||||
def llvm_host_triple():
|
||||
return arch.get_target().replace("-semios-linux", "-unknown-linux-musl")
|
||||
return current_target().replace("-semios-linux", "-unknown-linux-musl")
|
||||
|
||||
def cmake(sourcedir, args):
|
||||
builddir = os.getcwd() + f"/../_build_{sourcedir}"
|
||||
@@ -42,6 +42,7 @@ def cmake(sourcedir, args):
|
||||
|
||||
"-DLLVM_ENABLE_EH=ON",
|
||||
"-DLLVM_ENABLE_RTTI=ON",
|
||||
"-DLLVM_ENABLE_ZLIB=FORCE_ON",
|
||||
"-DLLVM_ENABLE_ASSERTIONS=OFF",
|
||||
"-DLLVM_BUILD_LLVM_DYLIB=ON",
|
||||
"-DLLVM_LINK_LLVM_DYLIB=ON",
|
||||
@@ -49,6 +50,9 @@ def cmake(sourcedir, args):
|
||||
"-DLLVM_ENABLE_LIBCXX=ON",
|
||||
"-DLLVM_ENABLE_LLD=ON",
|
||||
"-DLLVM_ENABLE_FFI=ON",
|
||||
|
||||
f"-DZLIB_LIBRARY={packie.prefix_of('libz-ng')}/lib/libz.so",
|
||||
f"-DZLIB_INCLUDE_DIR={packie.prefix_of('libz-ng-dev')}/include",
|
||||
]
|
||||
subprocess.run(template_args + args, check=True)
|
||||
subprocess.run(["cmake", "--build", builddir], check=True)
|
||||
@@ -132,6 +136,7 @@ def build_clang():
|
||||
"-DCLANG_DEFAULT_CXX_STDLIB=libc++",
|
||||
"-DCLANG_DEFAULT_RTLIB=compiler-rt",
|
||||
"-DLLVM_INCLUDE_TESTS=OFF",
|
||||
f"-DCLANG_CONFIG_FILE_SYSTEM_DIR={get_prefix('clang')}/share/cfg",
|
||||
f"-DC_INCLUDE_DIRS=/lib/{arch.get_target()}/include:{get_prefix('clang')}/lib/clang/{pkgver_major}/include",
|
||||
]
|
||||
cmake("clang", import_llvm() + options)
|
||||
@@ -191,10 +196,15 @@ dep("libunwind @same-arch")
|
||||
dep("libcxx @same-arch")
|
||||
dep("libcxxabi @same-arch")
|
||||
dep("libffi @same-arch")
|
||||
dep("libz @same-arch")
|
||||
on_pack(lambda composer: auto_pack_glob(composer, ["lib/*.so*"]))
|
||||
|
||||
package("libllvm-dev")
|
||||
dep("libllvm (same)")
|
||||
dep("semi-libc-dev @same-arch")
|
||||
dep("libcxx-dev @same-arch")
|
||||
dep("libffi-dev @same-arch")
|
||||
dep("libz-dev @same-arch")
|
||||
on_pack(lambda composer: auto_pack_dev(composer, "llvm", ["llvm-config"]))
|
||||
|
||||
package("libllvm-static")
|
||||
@@ -210,6 +220,7 @@ dep("libllvm (same)")
|
||||
on_pack(pack_llvm)
|
||||
for i in ["strip", "ar", "ranlib", "readelf", "objcopy", "objdump", "strings", "nm"]:
|
||||
link(f"bin/llvm-{i}", f"/bin/{i}")
|
||||
link("bin/llvm-cxxfilt", "/bin/c++filt")
|
||||
|
||||
|
||||
enter_install("bolt")
|
||||
@@ -232,6 +243,7 @@ package("libclang-dev")
|
||||
dep("libclang (same)")
|
||||
on_pack(lambda composer: auto_pack_dev(composer, "clang"))
|
||||
|
||||
clang_cfgdir = os.getcwd() + "/clang-cfg"
|
||||
def pack_clang(composer):
|
||||
# Add base files
|
||||
composer.add_dir("bin", "bin")
|
||||
@@ -257,12 +269,7 @@ def pack_clang(composer):
|
||||
os.symlink(f"/lib/{arch.get_target()}/include", f"{composer.workdir}/bundle/include")
|
||||
|
||||
# Add configuration
|
||||
clang_cfg = f"-L/lib/{arch.get_target()}\n-B/lib/{arch.get_target()}\n-rtlib=compiler-rt\n"
|
||||
clangxx_cfg = f"-stdlib=libc++\n{clang_cfg}"
|
||||
with open(f"{composer.workdir}/bundle/bin/clang.cfg", "wt+") as file:
|
||||
file.write(clang_cfg)
|
||||
with open(f"{composer.workdir}/bundle/bin/clang++.cfg", "wt+") as file:
|
||||
file.write(clangxx_cfg)
|
||||
composer.add_dir(clang_cfgdir, "share/cfg")
|
||||
|
||||
package("clang")
|
||||
dep("libclang (same)")
|
||||
|
||||
@@ -0,0 +1,40 @@
|
||||
import os
|
||||
|
||||
from lib import cpp
|
||||
from lib.make import *
|
||||
|
||||
|
||||
version("1.11.0")
|
||||
description("Extremely Fast Compression algorithm")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_managed("github://lz4/lz4#v1.11.0")
|
||||
|
||||
builddep("shortcut/c")
|
||||
builddep("shortcut/autotools")
|
||||
|
||||
|
||||
def build():
|
||||
cpp.make()
|
||||
cpp.make_install([
|
||||
"prefix=/",
|
||||
f"libdir={get_prefix('liblz4')}/lib",
|
||||
f"includedir={get_prefix('liblz4-dev')}/include",
|
||||
f"bindir={get_prefix('lz4')}/bin",
|
||||
f"DESTDIR={os.getcwd()}/../cpp_install",
|
||||
])
|
||||
|
||||
on_build(build)
|
||||
|
||||
|
||||
package("liblz4")
|
||||
cpp.use_auto_pack(["lib"])
|
||||
dep("semi-libc @same-arch")
|
||||
|
||||
package("lz4")
|
||||
cpp.use_auto_pack(["bin"])
|
||||
dep("liblz4 (same)")
|
||||
|
||||
package("liblz4-dev")
|
||||
cpp.use_auto_pack(["dev"])
|
||||
dep("liblz4 (same)")
|
||||
dep("semi-libc-dev @same-arch")
|
||||
@@ -0,0 +1,11 @@
|
||||
--- a/meson.build 2026-10-28 15:17:44.000000000 +0000
|
||||
+++ b/meson.build 2026-11-09 10:34:43.222722774 +0000
|
||||
@@ -2104,7 +2104,7 @@
|
||||
if with_clc
|
||||
llvm_libdir = dep_llvm.get_variable(cmake : 'LLVM_LIBRARY_DIR', configtool: 'libdir')
|
||||
|
||||
- dep_clang = cpp.find_library('clang-cpp', dirs : llvm_libdir, required : false)
|
||||
+ dep_clang = cpp.find_library('clang-cpp', required : false)
|
||||
|
||||
if not dep_clang.found() or not _shared_llvm
|
||||
clang_modules = [
|
||||
+72
-60
@@ -1,14 +1,15 @@
|
||||
import glob
|
||||
import os
|
||||
|
||||
from lib.make import *
|
||||
from lib import cpp, arch
|
||||
|
||||
|
||||
version("26.2.0")
|
||||
llvm_version = "~23.0.0"
|
||||
|
||||
version("26.2.6")
|
||||
description("Open source implementations of OpenGL, OpenGL ES, Vulkan, OpenCL, and more")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_url("https://archive.mesa3d.org/mesa-26.2.0.tar.xz")
|
||||
source_url("https://archive.mesa3d.org/mesa-26.2.6.tar.xz")
|
||||
|
||||
builddep("shortcut/meson")
|
||||
builddep("shortcut/c++")
|
||||
@@ -17,8 +18,8 @@ builddep("wayland-protocols @target")
|
||||
builddep("libffi-dev @target")
|
||||
builddep("libexpat-dev @target")
|
||||
builddep("pkgconf @target")
|
||||
builddep("libllvm-dev @target")
|
||||
builddep("libclang-dev @target")
|
||||
builddep(f"libllvm-dev ({llvm_version}) @target")
|
||||
builddep(f"libclang-dev ({llvm_version}) @target")
|
||||
builddep("libunwind-dev @target")
|
||||
builddep("libz-ng-dev @target")
|
||||
builddep("libzstd-dev @target")
|
||||
@@ -28,7 +29,7 @@ builddep("libopengl-dev @target")
|
||||
builddep("libglesv2-dev @target")
|
||||
builddep("libva-dev @target")
|
||||
builddep("libdrm-dev @target")
|
||||
builddep("libllvmspirv-dev @target")
|
||||
builddep(f"libllvmspirv-dev ({llvm_version}) @target")
|
||||
builddep("spirv-tools-dev @target")
|
||||
builddep("libpng-dev @target")
|
||||
builddep("libarchive-dev @target")
|
||||
@@ -45,13 +46,7 @@ builddep("glslang")
|
||||
|
||||
archspec = {
|
||||
"aarch64-semios-linux": {
|
||||
"vulkan_drivers": [
|
||||
"mesa-vulkan-asahi",
|
||||
"mesa-vulkan-freedreno",
|
||||
"mesa-vulkan-intel",
|
||||
"mesa-vulkan-lvp",
|
||||
"mesa-vulkan-panfrost",
|
||||
],
|
||||
"gallium_drivers": "asahi,panfrost,v3d,vc4,llvmpipe,svga,zink,virgl",
|
||||
}
|
||||
}
|
||||
|
||||
@@ -70,7 +65,7 @@ def build():
|
||||
# Generic directories
|
||||
f"--libdir=/lib/{arch.get_target()}",
|
||||
f"--includedir=/lib/{arch.get_target()}/include",
|
||||
f"--datadir=/share",
|
||||
"--datadir=/share",
|
||||
|
||||
# Platform selection
|
||||
"-Dplatforms=wayland",
|
||||
@@ -80,12 +75,12 @@ def build():
|
||||
"-Dxmlconfig=enabled",
|
||||
|
||||
# Gallium
|
||||
"-Dgallium-drivers=auto",
|
||||
f"-Dgallium-drivers={archspec[arch.get_target()]['gallium_drivers']}",
|
||||
"-Dgallium-va=enabled",
|
||||
f"-Dva-libs-path=/lib/{arch.get_target()}/dri",
|
||||
|
||||
# Vulkan
|
||||
"-Dvulkan-drivers=auto",
|
||||
"-Dvulkan-drivers=amd,broadcom,intel,intel_hasvk,panfrost,asahi,imagination,swrast",
|
||||
"-Dvulkan-layers=device-select,overlay,screenshot,anti-lag,vram-report-limit",
|
||||
f"-Dvulkan-icd-dir=/lib/{arch.get_target()}/vulkan/icd.d",
|
||||
"-Dvulkan-manifest-per-architecture=false",
|
||||
@@ -180,9 +175,6 @@ def pack_vulkan(composer, name):
|
||||
composer.makedirs("lib/vulkan/icd.d")
|
||||
composer.addfile(f"{libdir}/vulkan/icd.d/{name}_icd.json", f"lib/vulkan/icd.d/{name}_icd.json")
|
||||
|
||||
def hasvulkan(name):
|
||||
return name in archspec[arch.get_target()]["vulkan_drivers"]
|
||||
|
||||
|
||||
package("libgbm")
|
||||
dep("libdrm @same-arch")
|
||||
@@ -196,7 +188,7 @@ on_pack(lambda composer: pack_dev_simple(composer, "gbm"))
|
||||
|
||||
package("libgallium")
|
||||
dep("libdrm @same-arch")
|
||||
dep("libllvm @same-arch")
|
||||
dep(f"libllvm ({llvm_version}) @same-arch")
|
||||
dep("libexpat @same-arch")
|
||||
dep("libz @same-arch")
|
||||
dep("libzstd @same-arch")
|
||||
@@ -213,6 +205,7 @@ dep("libexpat @same-arch")
|
||||
dep("libdrm @same-arch")
|
||||
dep("libwayland @same-arch")
|
||||
on_pack(pack_libegl)
|
||||
link("share/glvnd/egl_vendor.d/50_mesa.json", "/share/glvnd/egl_vendor.d/50_mesa.json")
|
||||
|
||||
package("libegl-mesa-dev")
|
||||
dep("libgbm-dev (same)")
|
||||
@@ -222,47 +215,66 @@ dep("libwayland-dev @same-arch")
|
||||
dep("libegl-mesa (same)")
|
||||
on_pack(lambda composer: pack_dev_simple(composer, "EGL"))
|
||||
|
||||
if hasvulkan("mesa-vulkan-asahi"):
|
||||
package("mesa-vulkan-asahi")
|
||||
dep("libdrm @same-arch")
|
||||
dep("libwayland @same-arch")
|
||||
dep("libz @same-arch")
|
||||
dep("libzstd @same-arch")
|
||||
dep("libcxx @same-arch")
|
||||
on_pack(lambda composer: pack_vulkan(composer, "asahi"))
|
||||
package("mesa-vulkan-asahi")
|
||||
dep("libdrm @same-arch")
|
||||
dep("libwayland @same-arch")
|
||||
dep("libz @same-arch")
|
||||
dep("libzstd @same-arch")
|
||||
dep("libcxx @same-arch")
|
||||
on_pack(lambda composer: pack_vulkan(composer, "asahi"))
|
||||
|
||||
if hasvulkan("mesa-vulkan-freedreno"):
|
||||
package("mesa-vulkan-freedreno")
|
||||
dep("libdrm @same-arch")
|
||||
dep("libwayland @same-arch")
|
||||
dep("libz @same-arch")
|
||||
dep("libzstd @same-arch")
|
||||
dep("libcxx @same-arch")
|
||||
on_pack(lambda composer: pack_vulkan(composer, "freedreno"))
|
||||
package("mesa-vulkan-intel")
|
||||
dep("libdrm @same-arch")
|
||||
dep("libwayland @same-arch")
|
||||
dep("libz @same-arch")
|
||||
dep("libzstd @same-arch")
|
||||
dep("libcxx @same-arch")
|
||||
on_pack(lambda composer: pack_vulkan(composer, "intel"))
|
||||
|
||||
if hasvulkan("mesa-vulkan-intel"):
|
||||
package("mesa-vulkan-intel")
|
||||
dep("libdrm @same-arch")
|
||||
dep("libwayland @same-arch")
|
||||
dep("libz @same-arch")
|
||||
dep("libzstd @same-arch")
|
||||
dep("libcxx @same-arch")
|
||||
on_pack(lambda composer: pack_vulkan(composer, "intel"))
|
||||
package("mesa-vulkan-lvp")
|
||||
dep("libdrm @same-arch")
|
||||
dep("libwayland @same-arch")
|
||||
dep("libz @same-arch")
|
||||
dep("libzstd @same-arch")
|
||||
dep("libcxx @same-arch")
|
||||
on_pack(lambda composer: pack_vulkan(composer, "lvp"))
|
||||
|
||||
if hasvulkan("mesa-vulkan-lvp"):
|
||||
package("mesa-vulkan-lvp")
|
||||
dep("libdrm @same-arch")
|
||||
dep("libwayland @same-arch")
|
||||
dep("libz @same-arch")
|
||||
dep("libzstd @same-arch")
|
||||
dep("libcxx @same-arch")
|
||||
on_pack(lambda composer: pack_vulkan(composer, "lvp"))
|
||||
package("mesa-vulkan-powervr")
|
||||
dep("libdrm @same-arch")
|
||||
dep("libwayland @same-arch")
|
||||
dep("libz @same-arch")
|
||||
dep("libzstd @same-arch")
|
||||
dep("libcxx @same-arch")
|
||||
on_pack(lambda composer: pack_vulkan(composer, "powervr_mesa"))
|
||||
|
||||
if hasvulkan("mesa-vulkan-panfrost"):
|
||||
package("mesa-vulkan-panfrost")
|
||||
dep("libdrm @same-arch")
|
||||
dep("libwayland @same-arch")
|
||||
dep("libz @same-arch")
|
||||
dep("libzstd @same-arch")
|
||||
dep("libcxx @same-arch")
|
||||
on_pack(lambda composer: pack_vulkan(composer, "panfrost"))
|
||||
package("mesa-vulkan-broadcom")
|
||||
dep("libdrm @same-arch")
|
||||
dep("libwayland @same-arch")
|
||||
dep("libz @same-arch")
|
||||
dep("libzstd @same-arch")
|
||||
dep("libcxx @same-arch")
|
||||
on_pack(lambda composer: pack_vulkan(composer, "broadcom"))
|
||||
|
||||
package("mesa-vulkan-intel-hasvk")
|
||||
dep("libdrm @same-arch")
|
||||
dep("libwayland @same-arch")
|
||||
dep("libz @same-arch")
|
||||
dep("libzstd @same-arch")
|
||||
dep("libcxx @same-arch")
|
||||
on_pack(lambda composer: pack_vulkan(composer, "intel_hasvk"))
|
||||
|
||||
package("mesa-vulkan-panfrost")
|
||||
dep("libdrm @same-arch")
|
||||
dep("libwayland @same-arch")
|
||||
dep("libz @same-arch")
|
||||
dep("libzstd @same-arch")
|
||||
dep("libcxx @same-arch")
|
||||
on_pack(lambda composer: pack_vulkan(composer, "panfrost"))
|
||||
|
||||
package("mesa-vulkan-radeon")
|
||||
dep("libdrm @same-arch")
|
||||
dep("libwayland @same-arch")
|
||||
dep("libz @same-arch")
|
||||
dep("libzstd @same-arch")
|
||||
dep("libcxx @same-arch")
|
||||
on_pack(lambda composer: pack_vulkan(composer, "radeon"))
|
||||
@@ -0,0 +1,130 @@
|
||||
from lib.make import *
|
||||
from lib import cpp
|
||||
|
||||
|
||||
version("0.41.0")
|
||||
description("Command line media player")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_managed("github://mpv-player/mpv#v0.41.0")
|
||||
|
||||
builddep("shortcut/c")
|
||||
builddep("shortcut/meson")
|
||||
builddep("libwayland-dev @target")
|
||||
builddep("wayland-protocols @target")
|
||||
builddep("libxkbcommon-dev @target")
|
||||
builddep("xkeyboard-config")
|
||||
builddep("libplacebo-dev @target")
|
||||
builddep("libass-dev @target")
|
||||
builddep("libavcodec-dev @target")
|
||||
builddep("libavdevice-dev @target")
|
||||
builddep("libavfilter-dev @target")
|
||||
builddep("libavutil-dev @target")
|
||||
builddep("libswresample-dev @target")
|
||||
builddep("libswscale-dev @target")
|
||||
builddep("libjpeg-turbo-dev @target")
|
||||
builddep("libcurl-dev @target")
|
||||
builddep("libarchive-dev @target")
|
||||
builddep("liblcms-dev @target")
|
||||
builddep("libz-dev @target")
|
||||
builddep("alsa-lib-dev @target")
|
||||
builddep("linux-dev @target")
|
||||
builddep("libva-dev @target")
|
||||
builddep("libegl-dev @target")
|
||||
builddep("libdrm-dev @target")
|
||||
|
||||
|
||||
def build():
|
||||
cpp.meson_setup([
|
||||
"-Dgpl=true",
|
||||
"-Dcplayer=true",
|
||||
"-Dlibmpv=true",
|
||||
"-Dbuild-date=true",
|
||||
"-Dtests=false",
|
||||
"-Dfuzzers=false",
|
||||
|
||||
"-Dcdda=disabled",
|
||||
"-Dcplugins=disabled",
|
||||
"-Ddvbin=disabled",
|
||||
"-Ddvdnav=disabled",
|
||||
"-Diconv=enabled",
|
||||
"-Djavascript=disabled",
|
||||
"-Djpeg=enabled",
|
||||
"-Dlcms2=enabled",
|
||||
"-Dlibarchive=enabled",
|
||||
"-Dlibavdevice=enabled",
|
||||
"-Dlibbluray=disabled",
|
||||
"-Dlua=disabled",
|
||||
"-Dpthread-debug=disabled",
|
||||
"-Drubberband=disabled",
|
||||
"-Dsdl2-gamepad=disabled",
|
||||
"-Duchardet=disabled",
|
||||
"-Dvapoursynth=disabled",
|
||||
"-Dx11-clipboard=disabled",
|
||||
"-Dzimg=disabled",
|
||||
"-Dzlib=enabled",
|
||||
|
||||
"-Dalsa=enabled",
|
||||
|
||||
"-Degl=enabled",
|
||||
"-Degl-wayland=enabled",
|
||||
"-Dvaapi=enabled",
|
||||
"-Dvaapi-wayland=enabled",
|
||||
"-Dwayland=enabled",
|
||||
|
||||
])
|
||||
cpp.meson_compile()
|
||||
cpp.meson_install()
|
||||
|
||||
on_build(build)
|
||||
|
||||
|
||||
package("libmpv")
|
||||
dep("libass @same-arch")
|
||||
dep("libavcodec @same-arch")
|
||||
dep("libavfilter @same-arch")
|
||||
dep("libavformat @same-arch")
|
||||
dep("libavutil @same-arch")
|
||||
dep("libplacebo @same-arch")
|
||||
dep("libswresample @same-arch")
|
||||
dep("libswscale @same-arch")
|
||||
dep("liblcms @same-arch")
|
||||
dep("libarchive @same-arch")
|
||||
dep("libavdevice @same-arch")
|
||||
dep("libz @same-arch")
|
||||
dep("alsa-lib @same-arch")
|
||||
dep("libjpeg-turbo @same-arch")
|
||||
dep("libwayland @same-arch")
|
||||
dep("libxkbcommon @same-arch")
|
||||
dep("libvulkan @same-arch")
|
||||
dep("libegl @same-arch")
|
||||
dep("libva @same-arch")
|
||||
dep("semi-libc @same-arch")
|
||||
cpp.use_auto_pack(["lib"])
|
||||
|
||||
package("libmpv-dev")
|
||||
dep("libmpv (same)")
|
||||
dep("libass-dev @same-arch")
|
||||
dep("libavcodec-dev @same-arch")
|
||||
dep("libavfilter-dev @same-arch")
|
||||
dep("libavformat-dev @same-arch")
|
||||
dep("libavutil-dev @same-arch")
|
||||
dep("libplacebo-dev @same-arch")
|
||||
dep("libswresample-dev @same-arch")
|
||||
dep("libswscale-dev @same-arch")
|
||||
dep("liblcms-dev @same-arch")
|
||||
dep("libarchive-dev @same-arch")
|
||||
dep("libavdevice-dev @same-arch")
|
||||
dep("libz-dev @same-arch")
|
||||
dep("alsa-lib-dev @same-arch")
|
||||
dep("libjpeg-turbo-dev @same-arch")
|
||||
dep("libwayland-dev @same-arch")
|
||||
dep("libxkbcommon-dev @same-arch")
|
||||
dep("libvulkan-dev @same-arch")
|
||||
dep("libegl-dev @same-arch")
|
||||
dep("libva-dev @same-arch")
|
||||
dep("semi-libc-dev @same-arch")
|
||||
cpp.use_auto_pack(["dev"])
|
||||
|
||||
package("mpv")
|
||||
dep("libmpv (same)")
|
||||
cpp.use_auto_pack(["bin"])
|
||||
@@ -0,0 +1,34 @@
|
||||
from lib.make import *
|
||||
from lib import cpp
|
||||
|
||||
version("2.7.0")
|
||||
description("a small build system with a focus on speed")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_managed("github://cisco/openh264#v2.7.0")
|
||||
|
||||
builddep("shortcut/c++")
|
||||
builddep("shortcut/meson")
|
||||
|
||||
|
||||
def build():
|
||||
cpp.meson_setup([
|
||||
"--prefix=/",
|
||||
"-Dtests=disabled",
|
||||
])
|
||||
cpp.meson_compile()
|
||||
cpp.meson_install()
|
||||
|
||||
on_build(build)
|
||||
|
||||
|
||||
package("libopenh264")
|
||||
dep("libcxxabi @same-arch")
|
||||
dep("libunwind @same-arch")
|
||||
dep("semi-libc @same-arch")
|
||||
cpp.use_auto_pack(["lib"])
|
||||
|
||||
package("libopenh264-dev")
|
||||
dep("libopenh264 (same)")
|
||||
dep("libcxx-dev @same-arch")
|
||||
dep("semi-libc-dev @same-arch")
|
||||
cpp.use_auto_pack(["dev"])
|
||||
@@ -0,0 +1,147 @@
|
||||
--- a/src/hotspot/os/posix/forbiddenFunctions_posix.hpp 2026-10-30 05:15:11.792623724 +0000
|
||||
+++ b/src/hotspot/os/posix/forbiddenFunctions_posix.hpp 2026-10-30 05:16:01.186833948 +0000
|
||||
@@ -37,25 +37,25 @@
|
||||
#endif
|
||||
|
||||
// POSIX puts _exit in <unistd.h>.
|
||||
-FORBID_IMPORTED_NORETURN_C_FUNCTION(void _exit(int), /* not noexcept */, "use os::exit")
|
||||
+//FORBID_IMPORTED_NORETURN_C_FUNCTION(void _exit(int), /* not noexcept */, "use os::exit")
|
||||
|
||||
// If needed, add os::strndup and use that instead.
|
||||
-FORBID_C_FUNCTION(char* strndup(const char*, size_t), noexcept, "don't use");
|
||||
+//FORBID_C_FUNCTION(char* strndup(const char*, size_t), noexcept, "don't use");
|
||||
|
||||
// realpath with a null second argument mallocs a string for the result.
|
||||
// With a non-null second argument, there is a risk of buffer overrun.
|
||||
-PRAGMA_DIAG_PUSH
|
||||
-FORBIDDEN_FUNCTION_IGNORE_CLANG_FORTIFY_WARNING
|
||||
-FORBID_C_FUNCTION(char* realpath(const char*, char*), noexcept, "use os::realpath");
|
||||
-PRAGMA_DIAG_POP
|
||||
+//PRAGMA_DIAG_PUSH
|
||||
+//FORBIDDEN_FUNCTION_IGNORE_CLANG_FORTIFY_WARNING
|
||||
+//FORBID_C_FUNCTION(char* realpath(const char*, char*), noexcept, "use os::realpath");
|
||||
+//PRAGMA_DIAG_POP
|
||||
|
||||
// Returns a malloc'ed string.
|
||||
-FORBID_C_FUNCTION(char* get_current_dir_name(), noexcept, "use os::get_current_directory");
|
||||
+//FORBID_C_FUNCTION(char* get_current_dir_name(), noexcept, "use os::get_current_directory");
|
||||
|
||||
// Problematic API that should never be used.
|
||||
-FORBID_C_FUNCTION(char* getwd(char*), noexcept, "use os::get_current_directory");
|
||||
+//FORBID_C_FUNCTION(char* getwd(char*), noexcept, "use os::get_current_directory");
|
||||
|
||||
// BSD utility that is subtly different from realloc.
|
||||
-FORBID_C_FUNCTION(void* reallocf(void*, size_t), /* not noexcept */, "use os::realloc");
|
||||
+//FORBID_C_FUNCTION(void* reallocf(void*, size_t), /* not noexcept */, "use os::realloc");
|
||||
|
||||
#endif // OS_POSIX_FORBIDDENFUNCTIONS_POSIX_HPP
|
||||
|
||||
|
||||
--- a/src/hotspot/share/cppstdlib/cstdlib.hpp 2026-08-19 14:06:10.000000000 +0000
|
||||
+++ b/src/hotspot/share/cppstdlib/cstdlib.hpp 2026-10-30 05:19:23.272251678 +0000
|
||||
@@ -76,30 +76,30 @@
|
||||
#endif // AIX altivec allocator support
|
||||
|
||||
// Prefer os:: variants of these.
|
||||
-FORBID_IMPORTED_NORETURN_C_FUNCTION(void exit(int), noexcept, "use os::exit")
|
||||
-FORBID_IMPORTED_NORETURN_C_FUNCTION(void _Exit(int), noexcept, "use os::exit")
|
||||
+//FORBID_IMPORTED_NORETURN_C_FUNCTION(void exit(int), noexcept, "use os::exit")
|
||||
+//FORBID_IMPORTED_NORETURN_C_FUNCTION(void _Exit(int), noexcept, "use os::exit")
|
||||
|
||||
// Windows puts _exit in <stdlib.h>. POSIX puts it in <unistd.h>.
|
||||
// We can't forbid it here when using clang if it's not in <stdlib.h> - see
|
||||
// the clang definition for FORBIDDEN_FUNCTION_NORETURN_ATTRIBUTE.
|
||||
#ifdef _WINDOWS
|
||||
-FORBID_IMPORTED_NORETURN_C_FUNCTION(void _exit(int), /* not noexcept */, "use os::exit")
|
||||
+//FORBID_IMPORTED_NORETURN_C_FUNCTION(void _exit(int), /* not noexcept */, "use os::exit")
|
||||
#endif // _WINDOWS
|
||||
|
||||
// These functions return raw C-heap pointers or, in case of free(), take raw
|
||||
// C-heap pointers. We generally want allocation to be done through NMT, using
|
||||
// os::malloc and friends.
|
||||
-FORBID_IMPORTED_C_FUNCTION(void* malloc(size_t), noexcept, "use os::malloc");
|
||||
-FORBID_IMPORTED_C_FUNCTION(void free(void*), noexcept, "use os::free");
|
||||
-FORBID_IMPORTED_C_FUNCTION(void* calloc(size_t, size_t), noexcept, "use os::malloc and zero out manually");
|
||||
-FORBID_IMPORTED_C_FUNCTION(void* realloc(void*, size_t), noexcept, "use os::realloc");
|
||||
+//FORBID_IMPORTED_C_FUNCTION(void* malloc(size_t), noexcept, "use os::malloc");
|
||||
+//FORBID_IMPORTED_C_FUNCTION(void free(void*), noexcept, "use os::free");
|
||||
+//FORBID_IMPORTED_C_FUNCTION(void* calloc(size_t, size_t), noexcept, "use os::malloc and zero out manually");
|
||||
+//FORBID_IMPORTED_C_FUNCTION(void* realloc(void*, size_t), noexcept, "use os::realloc");
|
||||
|
||||
// These are not provided (and are unimplementable?) by Windows.
|
||||
// https://stackoverflow.com/questions/62962839/stdaligned-alloc-missing-from-visual-studio-2019
|
||||
// They also aren't useful for a POSIX implementation of NMT.
|
||||
#ifndef _WINDOWS
|
||||
-FORBID_C_FUNCTION(void* aligned_alloc(size_t, size_t), noexcept, "don't use");
|
||||
-FORBID_C_FUNCTION(int posix_memalign(void**, size_t, size_t), noexcept, "don't use");
|
||||
+//FORBID_C_FUNCTION(void* aligned_alloc(size_t, size_t), noexcept, "don't use");
|
||||
+//FORBID_C_FUNCTION(int posix_memalign(void**, size_t, size_t), noexcept, "don't use");
|
||||
#endif // !_WINDOWS
|
||||
|
||||
#endif // SHARE_CPPSTDLIB_CSTDLIB_HPP
|
||||
|
||||
|
||||
--- a/src/hotspot/share/utilities/forbiddenFunctions.hpp 2026-08-19 14:06:10.000000000 +0000
|
||||
+++ b/src/hotspot/share/utilities/forbiddenFunctions.hpp 2026-10-30 05:21:27.402739421 +0000
|
||||
@@ -43,28 +43,28 @@
|
||||
// or have security concerns, either with preferred alternatives, or to be
|
||||
// avoided entirely.
|
||||
|
||||
-FORBID_IMPORTED_C_FUNCTION(char* strerror(int), noexcept, "use os::strerror");
|
||||
-FORBID_IMPORTED_C_FUNCTION(char* strtok(char*, const char*), noexcept, "use strtok_r");
|
||||
+//FORBID_IMPORTED_C_FUNCTION(char* strerror(int), noexcept, "use os::strerror");
|
||||
+//FORBID_IMPORTED_C_FUNCTION(char* strtok(char*, const char*), noexcept, "use strtok_r");
|
||||
|
||||
// AIX declarations for sprintf and snprintf are not noexcept, which is
|
||||
// inconsistent with most other system header declarations, including being
|
||||
// inconsistent with vsprintf and fsnprintf.
|
||||
-FORBID_C_FUNCTION(int sprintf(char*, const char*, ...), NOT_AIX(noexcept), "use os::snprintf");
|
||||
-FORBID_C_FUNCTION(int snprintf(char*, size_t, const char*, ...), NOT_AIX(noexcept), "use os::snprintf");
|
||||
+//FORBID_C_FUNCTION(int sprintf(char*, const char*, ...), NOT_AIX(noexcept), "use os::snprintf");
|
||||
+//FORBID_C_FUNCTION(int snprintf(char*, size_t, const char*, ...), NOT_AIX(noexcept), "use os::snprintf");
|
||||
|
||||
PRAGMA_DIAG_PUSH
|
||||
FORBIDDEN_FUNCTION_IGNORE_CLANG_FORTIFY_WARNING
|
||||
-FORBID_C_FUNCTION(int vsprintf(char*, const char*, va_list), noexcept, "use os::vsnprintf");
|
||||
-FORBID_C_FUNCTION(int vsnprintf(char*, size_t, const char*, va_list), noexcept, "use os::vsnprintf");
|
||||
+//FORBID_C_FUNCTION(int vsprintf(char*, const char*, va_list), noexcept, "use os::vsnprintf");
|
||||
+//FORBID_C_FUNCTION(int vsnprintf(char*, size_t, const char*, va_list), noexcept, "use os::vsnprintf");
|
||||
PRAGMA_DIAG_POP
|
||||
|
||||
// All of the following functions return raw C-heap pointers. We generally
|
||||
// want allocation to be done through NMT.
|
||||
-FORBID_IMPORTED_C_FUNCTION(char* strdup(const char *s), noexcept, "use os::strdup");
|
||||
-FORBID_IMPORTED_C_FUNCTION(wchar_t* wcsdup(const wchar_t *s), noexcept, "don't use");
|
||||
+//FORBID_IMPORTED_C_FUNCTION(char* strdup(const char *s), noexcept, "use os::strdup");
|
||||
+//FORBID_IMPORTED_C_FUNCTION(wchar_t* wcsdup(const wchar_t *s), noexcept, "don't use");
|
||||
|
||||
// Disallow non-wrapped raw library function.
|
||||
-MACOS_AARCH64_ONLY(FORBID_C_FUNCTION(void pthread_jit_write_protect_np(int enabled), noexcept, \
|
||||
- "use os::current_thread_enable_wx");)
|
||||
+//MACOS_AARCH64_ONLY(FORBID_C_FUNCTION(void pthread_jit_write_protect_np(int enabled), noexcept, \
|
||||
+// "use os::current_thread_enable_wx");)
|
||||
|
||||
#endif // SHARE_UTILITIES_FORBIDDENFUNCTIONS_HPP
|
||||
|
||||
--- a/src/jdk.jpackage/share/native/common/SysInfo.h 2026-08-19 14:06:10.000000000 +0000
|
||||
+++ b/src/jdk.jpackage/share/native/common/SysInfo.h 2026-11-01 05:19:38.503721391 +0000
|
||||
@@ -28,6 +28,7 @@
|
||||
#define SYSINFO_H
|
||||
|
||||
#include "tstrings.h"
|
||||
+#include <new>
|
||||
|
||||
|
||||
//
|
||||
|
||||
--- a/src/jdk.jpackage/linux/native/libapplauncher/Package.cpp 2026-08-19 14:06:10.000000000 +0000
|
||||
+++ b/src/jdk.jpackage/linux/native/libapplauncher/Package.cpp 2026-11-01 05:21:02.547026922 +0000
|
||||
@@ -28,6 +28,8 @@
|
||||
#include "AppLauncher.h"
|
||||
#include "ErrorHandling.h"
|
||||
|
||||
+#include <new>
|
||||
+
|
||||
|
||||
Package::Package(): type(Unknown) {
|
||||
}
|
||||
@@ -0,0 +1,98 @@
|
||||
import subprocess
|
||||
import glob
|
||||
import os
|
||||
|
||||
from lib import cpp, packie
|
||||
from lib.make import *
|
||||
|
||||
|
||||
version("27.0.1.1+0004")
|
||||
description("JDK implementation of the OpenJDK project.")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_managed("github://openjdk/jdk27u#jdk-27.0.1.1+4-manual")
|
||||
|
||||
builddep("shortcut/c++")
|
||||
builddep("shortcut/autotools")
|
||||
builddep("pkgconf @target")
|
||||
builddep("libjpeg-turbo-dev @target")
|
||||
builddep("liblcms-dev @target")
|
||||
builddep("libpng-dev @target")
|
||||
builddep("libharfbuzz-dev @target")
|
||||
builddep("libfreetype-dev @target")
|
||||
builddep("libffi-dev @target")
|
||||
builddep("alsa-lib-dev @target")
|
||||
builddep("cups-dev @target")
|
||||
builddep("linux-dev @target")
|
||||
builddep("bash")
|
||||
builddep("file")
|
||||
builddep("zip")
|
||||
builddep("gzip")
|
||||
builddep("openjdk")
|
||||
|
||||
block_hook("autolink")
|
||||
|
||||
|
||||
def build():
|
||||
os.environ["CC"] = "clang"
|
||||
os.environ["CXX"] = "clang++"
|
||||
cpp.configure([
|
||||
f"--prefix={get_prefix('openjdk')}",
|
||||
"--enable-headless-only",
|
||||
"--enable-jvm-feature-cds",
|
||||
"--enable-jvm-feature-compiler1",
|
||||
"--enable-jvm-feature-compiler2",
|
||||
"--enable-jvm-feature-epsilongc",
|
||||
"--enable-jvm-feature-g1gc",
|
||||
"--enable-jvm-feature-jfr",
|
||||
"--enable-jvm-feature-jni-check",
|
||||
"--enable-jvm-feature-jvmti",
|
||||
#"--enable-jvm-feature-link-time-opt",
|
||||
"--enable-jvm-feature-management",
|
||||
"--enable-jvm-feature-parallelgc",
|
||||
"--enable-jvm-feature-serialgc",
|
||||
"--enable-jvm-feature-services",
|
||||
"--enable-jvm-feature-shenandoahgc",
|
||||
"--enable-jvm-feature-vm-structs",
|
||||
"--enable-jvm-feature-zgc",
|
||||
"--with-build-user=root",
|
||||
"--with-vendor-name=SemiOS",
|
||||
"--with-vendor-url=https://os.semilabs.org",
|
||||
"--with-vendor-bug-url=https://gitea.semilabs.org/semios/ports/issues/new",
|
||||
"--with-vendor-vm-bug-url=https://gitea.semilabs.org/semios/ports/issues/new",
|
||||
"--with-toolchain-type=clang",
|
||||
"--with-stdc++lib=dynamic",
|
||||
f"--with-freetype-include={packie.prefix_of('libfreetype-dev')}/include",
|
||||
f"--with-freetype-lib={packie.prefix_of('libfreetype')}/lib",
|
||||
"--with-lcms=system",
|
||||
"--with-libpng=system",
|
||||
"--with-harfbuzz=system",
|
||||
"--with-libjpeg=system",
|
||||
"--with-copyright-year=2026",
|
||||
"--disable-warnings-as-errors",
|
||||
])
|
||||
subprocess.run(
|
||||
["make", "images", "SOURCE_DATE_ISO_8601=2026-11-01T00:00:00Z"],
|
||||
check=True,
|
||||
)
|
||||
os.chdir(glob.glob("./build/*-release/images/jdk")[0])
|
||||
|
||||
on_build(build)
|
||||
|
||||
|
||||
def pack(composer):
|
||||
composer.add("bin")
|
||||
composer.add("conf")
|
||||
composer.add("demo")
|
||||
composer.add("include")
|
||||
composer.add("jmods")
|
||||
composer.add("legal")
|
||||
composer.add("lib")
|
||||
composer.add("release")
|
||||
for i in os.listdir("bin"):
|
||||
link(f"bin/{i}", f"/bin/{i}")
|
||||
|
||||
package("openjdk")
|
||||
dep("semi-libc @same-arch")
|
||||
dep("libcxx @same-arch")
|
||||
dep("libz @same-arch")
|
||||
on_pack(pack)
|
||||
@@ -0,0 +1,105 @@
|
||||
import subprocess
|
||||
import os
|
||||
|
||||
from lib import cpp, arch
|
||||
from lib.make import *
|
||||
|
||||
|
||||
version("4.1.0")
|
||||
description("General purpose TLS and crypto library")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_managed("github://openssl/openssl#openssl-4.1.0")
|
||||
|
||||
builddep("shortcut/c")
|
||||
builddep("shortcut/autotools")
|
||||
builddep("libz-dev @target")
|
||||
builddep("libzstd-dev @target")
|
||||
builddep("libbrotli-dev @target")
|
||||
builddep("linux-dev @target")
|
||||
builddep("perl")
|
||||
|
||||
|
||||
def build():
|
||||
subprocess.run(
|
||||
[
|
||||
"./Configure",
|
||||
"enable-brotli-dynamic",
|
||||
"no-deprecated",
|
||||
"no-dtls1",
|
||||
"no-dtls1-method",
|
||||
"no-legacy",
|
||||
"no-nextprotoneg",
|
||||
"no-rc2",
|
||||
"no-rc4",
|
||||
"no-tls1",
|
||||
"no-tls1-method",
|
||||
"no-tls1_1",
|
||||
"no-tls1_1-method",
|
||||
"enable-zlib-dynamic",
|
||||
"enable-zstd-dynamic",
|
||||
"--prefix=/",
|
||||
"--openssldir=/var/config/ssl",
|
||||
],
|
||||
check=True,
|
||||
)
|
||||
cpp.make()
|
||||
cpp.make_install()
|
||||
|
||||
on_build(build)
|
||||
|
||||
|
||||
def fix_pc(path, pkgname):
|
||||
with open(path) as fd:
|
||||
pc = fd.read()
|
||||
pc = pc.replace("libdir=${exec_prefix}/lib", f"libdir={get_prefix(pkgname)}/lib")
|
||||
pc = pc.replace("includedir=${prefix}/include", f"includedir={get_prefix('openssl-dev')}/include")
|
||||
with open(path, "wt+") as fd:
|
||||
fd.write(pc)
|
||||
|
||||
def pack_libcrypto(composer):
|
||||
composer.makedir("lib")
|
||||
composer.add("lib/libcrypto.so")
|
||||
composer.add("lib/libcrypto.so.4")
|
||||
|
||||
def pack_libssl(composer):
|
||||
composer.makedir("lib")
|
||||
composer.add("lib/libssl.so")
|
||||
composer.add("lib/libssl.so.4")
|
||||
|
||||
def pack_dev(composer):
|
||||
fix_pc("lib/pkgconfig/libcrypto.pc", "openssl-libcrypto")
|
||||
fix_pc("lib/pkgconfig/libssl.pc", "openssl-libssl")
|
||||
composer.makedir("lib")
|
||||
composer.add("lib/cmake")
|
||||
composer.add("lib/pkgconfig")
|
||||
composer.add("lib/libcrypto.a")
|
||||
composer.add("lib/libssl.a")
|
||||
composer.add("include")
|
||||
|
||||
def pack_docs(composer):
|
||||
composer.add("share")
|
||||
|
||||
package("openssl-libcrypto")
|
||||
dep("semi-libc @same-arch")
|
||||
on_pack(pack_libcrypto)
|
||||
|
||||
package("openssl-libssl")
|
||||
dep("openssl-libcrypto (same)")
|
||||
dep("semi-libc @same-arch")
|
||||
on_pack(pack_libssl)
|
||||
|
||||
package("openssl-tools")
|
||||
dep("openssl-libcrypto (same)")
|
||||
dep("openssl-libssl (same)")
|
||||
dep("semi-libc @same-arch")
|
||||
cpp.use_auto_pack(["bin"])
|
||||
|
||||
package("openssl-dev")
|
||||
dep("openssl-libcrypto (same)")
|
||||
dep("openssl-libssl (same)")
|
||||
dep("semi-libc-dev @same-arch")
|
||||
on_pack(pack_dev)
|
||||
|
||||
package("openssl-docs")
|
||||
arch_any()
|
||||
on_pack(pack_docs)
|
||||
@@ -2,10 +2,10 @@ from lib import rust
|
||||
from lib.make import *
|
||||
|
||||
|
||||
version("0.1.0-alpha.4")
|
||||
version("0.1.0-alpha.5")
|
||||
description("SemiOS package manager")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_managed("gitea://gitea.semilabs.org/semios/packie#v0.1.0-alpha.4", "rust")
|
||||
source_managed("gitea://gitea.semilabs.org/semios/packie#v0.1.0-alpha.5", "rust")
|
||||
|
||||
builddep("shortcut/rust")
|
||||
builddep("libsqlite-dev @target")
|
||||
@@ -19,5 +19,6 @@ on_build(build)
|
||||
|
||||
package("packie")
|
||||
dep("semi-libc @same-arch")
|
||||
dep("libunwind @same-arch")
|
||||
dep("libsqlite @same-arch")
|
||||
rust.use_auto_pack(["bin"])
|
||||
@@ -1,11 +1,13 @@
|
||||
import glob
|
||||
|
||||
from lib import cpp
|
||||
from lib.make import *
|
||||
|
||||
|
||||
version("10.47")
|
||||
version("10.49")
|
||||
description("a set of C functions that implement regular expression pattern matching")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_url("https://github.com/PCRE2Project/pcre2/releases/download/pcre2-10.47/pcre2-10.47.tar.gz")
|
||||
source_url("https://github.com/PCRE2Project/pcre2/releases/download/pcre2-10.49/pcre2-10.49.tar.gz")
|
||||
|
||||
builddep("shortcut/c")
|
||||
builddep("shortcut/autotools")
|
||||
@@ -17,7 +19,14 @@ def build():
|
||||
f"--libdir={get_prefix('libpcre2')}/lib",
|
||||
f"--bindir={get_prefix('pcre2-tools')}/bin",
|
||||
f"--includedir={get_prefix('libpcre2-dev')}/include",
|
||||
|
||||
"--disable-debug",
|
||||
"--enable-jit",
|
||||
|
||||
"--disable-pcre2grep-libbz2",
|
||||
"--disable-pcre2grep-libz",
|
||||
"--disable-pcre2test-libedit",
|
||||
"--disable-pcre2test-libreadline",
|
||||
])
|
||||
cpp.make()
|
||||
cpp.make_install()
|
||||
@@ -25,14 +34,31 @@ def build():
|
||||
on_build(build)
|
||||
|
||||
|
||||
def pack_tools(composer):
|
||||
composer.makedir("bin")
|
||||
composer.add("bin/pcre2grep")
|
||||
composer.add("bin/pcre2test")
|
||||
|
||||
def pack_dev(composer):
|
||||
composer.makedir("bin")
|
||||
composer.add("bin/pcre2-config")
|
||||
composer.add("include")
|
||||
composer.makedir("lib")
|
||||
composer.add("lib/pkgconfig")
|
||||
composer.add("lib/libpcre2-8.a")
|
||||
composer.add("lib/libpcre2-8.la")
|
||||
composer.add("lib/libpcre2-posix.a")
|
||||
composer.add("lib/libpcre2-posix.la")
|
||||
|
||||
package("libpcre2")
|
||||
dep("semi-libc @same-arch")
|
||||
cpp.use_auto_pack(["lib"])
|
||||
|
||||
package("pcre2-tools")
|
||||
dep("libpcre2 (same)")
|
||||
cpp.use_auto_pack(["bin"])
|
||||
on_pack(pack_tools)
|
||||
|
||||
package("libpcre2-dev")
|
||||
dep("semi-libc @same-arch")
|
||||
cpp.use_auto_pack(["dev"])
|
||||
dep("libpcre2 (same)")
|
||||
dep("semi-libc-dev @same-arch")
|
||||
on_pack(pack_dev)
|
||||
@@ -5,14 +5,14 @@ from lib import arch, cpp
|
||||
from lib.make import *
|
||||
|
||||
|
||||
full_version = "3.15.1"
|
||||
full_version = "3.15.2"
|
||||
[major_version, minor_version, rev_version] = full_version.split('.')
|
||||
base_version = f"{major_version}.{minor_version}"
|
||||
|
||||
version(full_version)
|
||||
description("the Python programming language")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_managed("github://python/cpython#v3.15.1")
|
||||
source_managed("github://python/cpython#v3.15.2")
|
||||
|
||||
builddep("shortcut/c")
|
||||
builddep("shortcut/autotools")
|
||||
@@ -29,7 +29,7 @@ builddep("pkgconf")
|
||||
|
||||
|
||||
def build():
|
||||
cpp.configure([
|
||||
configure_args = [
|
||||
"--prefix=/",
|
||||
f"--libdir={get_prefix('libpython')}/lib",
|
||||
f"--bindir={get_prefix('python')}/bin",
|
||||
@@ -45,10 +45,12 @@ def build():
|
||||
"--with-system-expat",
|
||||
"--with-system-libmpdec",
|
||||
"--with-readline=editline",
|
||||
"--with-tail-call-interp",
|
||||
"--without-ensurepip",
|
||||
"--with-ssl-default-suites=openssl",
|
||||
])
|
||||
]
|
||||
if arch.get_target() in ["x86_64-semios-linux", "aarch64-semios-linux"]:
|
||||
configure_args += ["--with-tail-call-interp"]
|
||||
cpp.configure(configure_args)
|
||||
cpp.make()
|
||||
cpp.make_install()
|
||||
os.rename(
|
||||
|
||||
@@ -0,0 +1,32 @@
|
||||
import os
|
||||
|
||||
from lib.make import *
|
||||
from lib import rust, packie
|
||||
|
||||
|
||||
version("0.73.2")
|
||||
description("Automatically generates Rust FFI bindings to C (and some C++) libraries.")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_managed("github://rust-lang/rust-bindgen#v0.73.2", "rust")
|
||||
|
||||
builddep("shortcut/rust")
|
||||
builddep("pkgconf @target")
|
||||
builddep("libclang @target")
|
||||
|
||||
|
||||
def build():
|
||||
os.environ["LIBCLANG_PATH"] = packie.prefix_of("libclang") + "/lib"
|
||||
rust.build([
|
||||
"--package", "bindgen-cli",
|
||||
"--no-default-features",
|
||||
"--features", "logging",
|
||||
"--features", "libcpp",
|
||||
])
|
||||
|
||||
on_build(build)
|
||||
|
||||
|
||||
package("rust-bindgen")
|
||||
dep("semi-libc @same-arch")
|
||||
dep("libclang @same-arch")
|
||||
rust.use_auto_pack(["bin"])
|
||||
@@ -40,7 +40,16 @@ package("SemiOS.Assembly.Networking")
|
||||
description("Assembly of SemiOS core networking experience")
|
||||
dep("aws-lc-libssl @same-arch")
|
||||
dep("aws-lc-tools @same-arch")
|
||||
dep("ca-certificates")
|
||||
dep("certutil @same-arch")
|
||||
dep("ca-certificates")
|
||||
deplinux("iproute2 @same-arch")
|
||||
on_pack(lambda _: print("Packing virtual package `SemiOS.Assembly.Networking`..."))
|
||||
|
||||
package("SemiOS.Assembly.NativeDevTools")
|
||||
description("Assembly of essential SemiOS build tools for native code")
|
||||
dep("llvm @same-arch")
|
||||
dep("clang @same-arch")
|
||||
dep("lld @same-arch")
|
||||
dep("semi-libc-dev @same-arch")
|
||||
deplinux("linux-dev @same-arch")
|
||||
on_pack(lambda _: print("Packing virtual package `SemiOS.Assembly.NativeDevTools`..."))
|
||||
@@ -0,0 +1,43 @@
|
||||
import os
|
||||
|
||||
from lib import rust
|
||||
from lib.make import *
|
||||
|
||||
|
||||
version("0.1.0-alpha.1")
|
||||
description("A cross-platform, OpenGL terminal emulator.")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_managed("gitea://gitea.semilabs.org/semios/semios-login-manager#v0.1.0-alpha.1", "rust")
|
||||
|
||||
builddep("shortcut/rust")
|
||||
|
||||
block_hook("autolink")
|
||||
|
||||
|
||||
pkgdir = os.getcwd()
|
||||
def build():
|
||||
with open(f"{pkgdir}/semios-login-manager.airs") as fd:
|
||||
airs = fd.read()
|
||||
airs = airs.replace("%PREFIX%", get_prefix("semios-login-manager"))
|
||||
with open("semios-login-manager.airs", "wt+") as fd:
|
||||
fd.write(airs)
|
||||
rust.build(["--features", "backend_semios"])
|
||||
|
||||
on_build(build)
|
||||
|
||||
|
||||
def pack(composer):
|
||||
composer.makedir("bin")
|
||||
composer.add(rust.artifacts_dir() + "/launcher", "bin/semios-login-manager")
|
||||
composer.add(rust.artifacts_dir() + "/ui", "bin/ui")
|
||||
composer.makedirs("share/services")
|
||||
composer.add("semios-login-manager.airs", "share/services/semios-login-manager.airs")
|
||||
|
||||
package("semios-login-manager")
|
||||
dep("semi-libc @same-arch")
|
||||
dep("seatd")
|
||||
dep("cage")
|
||||
dep("xkeyboard-config")
|
||||
link("share/services/semios-login-manager.airs", "/share/services/semios-login-manager.airs")
|
||||
link("bin/semios-login-manager", "/bin/semios-login-manager")
|
||||
on_pack(pack)
|
||||
@@ -0,0 +1,14 @@
|
||||
[service]
|
||||
display-name = "Graphical Login Manager"
|
||||
description = "On all available seats, it manages graphical sessions and user logins."
|
||||
dependencies = ["seatd"]
|
||||
|
||||
[exec]
|
||||
start = "%PREFIX%/bin/semios-login-manager"
|
||||
|
||||
[env]
|
||||
working_dir = "/"
|
||||
clear_vars = true
|
||||
|
||||
[env.vars]
|
||||
PATH = "/bin"
|
||||
@@ -1,12 +1,11 @@
|
||||
import os
|
||||
|
||||
import lib.cpp as cpp, packie
|
||||
from lib.make import *
|
||||
|
||||
version("3.53.4")
|
||||
|
||||
version("3.54.1")
|
||||
description("a C-language library that implements a small, fast, self-contained, high-reliability, full-featured, SQL database engine")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_url("https://sqlite.org/2026/sqlite-autoconf-3530400.tar.gz")
|
||||
source_url("https://sqlite.org/2026/sqlite-autoconf-3540100.tar.gz")
|
||||
|
||||
builddep("shortcut/autotools")
|
||||
builddep("shortcut/c")
|
||||
@@ -26,17 +25,19 @@ def build():
|
||||
cpp.make()
|
||||
cpp.make_install()
|
||||
|
||||
|
||||
on_build(build)
|
||||
|
||||
|
||||
package("libsqlite")
|
||||
cpp.use_auto_pack(["lib"])
|
||||
dep("semi-libc @same-arch")
|
||||
cpp.use_auto_pack(["lib"])
|
||||
|
||||
package("sqlite")
|
||||
cpp.use_auto_pack(["bin"])
|
||||
dep("semi-libc @same-arch")
|
||||
dep("libsqlite (same)")
|
||||
cpp.use_auto_pack(["bin"])
|
||||
|
||||
package("libsqlite-dev")
|
||||
cpp.use_auto_pack(["dev"])
|
||||
dep("libsqlite (same)")
|
||||
dep("semi-libc-dev @same-arch")
|
||||
cpp.use_auto_pack(["dev"])
|
||||
@@ -0,0 +1,21 @@
|
||||
from lib import rust
|
||||
from lib.make import *
|
||||
|
||||
|
||||
version("2.44.1")
|
||||
description("A cross-platform, high-performance and asynchronous web server for static files-serving.")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_managed("github://static-web-server/static-web-server#v2.44.1", "rust")
|
||||
|
||||
builddep("shortcut/rust")
|
||||
|
||||
|
||||
def build():
|
||||
rust.build()
|
||||
|
||||
on_build(build)
|
||||
|
||||
|
||||
package("static-web-server")
|
||||
dep("semi-libc @same-arch")
|
||||
rust.use_auto_pack(["bin"])
|
||||
@@ -0,0 +1,38 @@
|
||||
## sudoers file.
|
||||
##
|
||||
## This file SHOULD be edited with the 'visudo' command as root.
|
||||
## Failure to use 'visudo' may result in syntax or file permission errors
|
||||
## that prevent sudo from running.
|
||||
##
|
||||
## See the sudoers man page for the details on how to write a sudoers file.
|
||||
|
||||
## Defaults specification
|
||||
##
|
||||
## Preserve editor environment variables for visudo.
|
||||
## To preserve these for all commands, remove the "!visudo" qualifier.
|
||||
Defaults!/bin/visudo env_keep += "SUDO_EDITOR EDITOR VISUAL"
|
||||
##
|
||||
## Use a hard-coded PATH instead of the user's to find commands.
|
||||
## This also helps prevent poorly written scripts from running
|
||||
## arbitrary commands under sudo.
|
||||
Defaults secure_path="/bin"
|
||||
##
|
||||
## Uncomment this to allow commands run by sudo to see the
|
||||
## environment variables set by sshd(8).
|
||||
# Defaults env_keep += "SSH_*"
|
||||
##
|
||||
## Uncomment to disable "use_pty" when running commands as root.
|
||||
## Commands run as non-root users will run in a pseudo-terminal,
|
||||
## not the user's own terminal, to prevent command injection.
|
||||
# Defaults>root !use_pty
|
||||
##
|
||||
## Uncomment if the historical silent password prompt is desired
|
||||
# Defaults !pwfeedback
|
||||
|
||||
### User privilege specifications
|
||||
|
||||
## Allow root to execute any command
|
||||
root ALL=(ALL:ALL) ALL
|
||||
|
||||
## Allow members of group wheel to execute any command
|
||||
%wheel ALL=(ALL:ALL) ALL
|
||||
@@ -0,0 +1,26 @@
|
||||
--- a/src/sudo/mod.rs
|
||||
+++ b/src/sudo/mod.rs
|
||||
50,61c50,59
|
||||
< let mut path = if cfg!(target_os = "freebsd") {
|
||||
< option_env!("LOCALBASE").unwrap_or("/usr/local").into()
|
||||
< } else {
|
||||
< PathBuf::from("/")
|
||||
< };
|
||||
< path.push("etc/sudoers-rs");
|
||||
< if !path.exists() {
|
||||
< path.set_file_name("sudoers");
|
||||
< };
|
||||
<
|
||||
< dev_info!("Running with {} file", path.display());
|
||||
< path
|
||||
---
|
||||
> let user = PathBuf::from("/var/config/sudo/sudoers");
|
||||
> if !user.exists() {
|
||||
> if let Ok(mut path) = std::env::current_exe() {
|
||||
> path.pop();
|
||||
> path.pop();
|
||||
> path.push("share/config/sudoers");
|
||||
> return path;
|
||||
> }
|
||||
> }
|
||||
> user
|
||||
@@ -0,0 +1,8 @@
|
||||
--- a/src/sudo/pam.rs
|
||||
+++ b/src/sudo/pam.rs
|
||||
42,43c42,43
|
||||
< LaunchType::Login if cfg!(feature = "pam-login") => "sudo-i",
|
||||
< LaunchType::Login | LaunchType::Shell | LaunchType::Direct => "sudo",
|
||||
---
|
||||
> LaunchType::Login if cfg!(feature = "pam-login") => "run-as",
|
||||
> LaunchType::Login | LaunchType::Shell | LaunchType::Direct => "run-as",
|
||||
@@ -0,0 +1,11 @@
|
||||
--- a/src/common/resolve.rs
|
||||
+++ b/src/common/resolve.rs
|
||||
@@ -144,7 +144,7 @@
|
||||
// when no -u or -g is specified, default to root:root
|
||||
(None, None) => {
|
||||
target_user = User::from_name(c"root")?;
|
||||
- target_group = Group::from_name(if cfg!(target_os = "linux") {
|
||||
+ target_group = Group::from_name(if false {
|
||||
c"root"
|
||||
} else {
|
||||
c"wheel"
|
||||
@@ -0,0 +1,35 @@
|
||||
import os
|
||||
|
||||
import lib.rust as rust
|
||||
from lib.make import *
|
||||
|
||||
|
||||
version("0.2.15")
|
||||
description("A memory safe implementation of sudo.")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_managed("github://trifectatechfoundation/sudo-rs#v0.2.15", "rust")
|
||||
|
||||
builddep("shortcut/rust")
|
||||
builddep("libpam-dev @target")
|
||||
|
||||
|
||||
def build():
|
||||
rust.build()
|
||||
|
||||
on_build(build)
|
||||
|
||||
|
||||
configdir = os.getcwd() + "/config"
|
||||
|
||||
def pack(composer):
|
||||
os.chdir(rust.artifacts_dir())
|
||||
composer.makedir("bin")
|
||||
composer.add("sudo", "bin/sudo")
|
||||
composer.add("visudo", "bin/visudo")
|
||||
composer.makedir("share")
|
||||
composer.add(configdir, "share/config")
|
||||
|
||||
package("sudo")
|
||||
dep("semi-libc @same-arch")
|
||||
dep("libpam @same-arch")
|
||||
on_pack(pack)
|
||||
@@ -0,0 +1,39 @@
|
||||
from lib import cpp
|
||||
from lib.make import *
|
||||
|
||||
|
||||
version("1.2.0")
|
||||
description("theora video codec reference implementation")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_url("https://downloads.xiph.org/releases/theora/libtheora-1.2.0.tar.gz")
|
||||
|
||||
builddep("shortcut/c")
|
||||
builddep("shortcut/autotools")
|
||||
builddep("libogg-dev @target")
|
||||
|
||||
|
||||
def build():
|
||||
cpp.configure([
|
||||
"--prefix=/",
|
||||
f"--libdir={get_prefix('libtheora')}/lib",
|
||||
f"--includedir={get_prefix('libtheora-dev')}/include",
|
||||
"--disable-oggtest",
|
||||
"--disable-vorbistest",
|
||||
"--disable-examples",
|
||||
])
|
||||
cpp.make()
|
||||
cpp.make_install()
|
||||
|
||||
on_build(build)
|
||||
|
||||
|
||||
package("libtheora")
|
||||
dep("semi-libc @same-arch")
|
||||
dep("libogg @same-arch")
|
||||
cpp.use_auto_pack(["lib"])
|
||||
|
||||
package("libtheora-dev")
|
||||
dep("libtheora (same)")
|
||||
dep("semi-libc-dev @same-arch")
|
||||
dep("libogg-dev @same-arch")
|
||||
cpp.use_auto_pack(["dev"])
|
||||
@@ -0,0 +1,37 @@
|
||||
import os
|
||||
|
||||
from lib import arch, cpp
|
||||
from lib.make import *
|
||||
|
||||
|
||||
version("3.8")
|
||||
description("the terminal multiplexer that keeps your work running")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_managed("github://tmux/tmux#3.8", "autotools")
|
||||
|
||||
builddep("shortcut/c")
|
||||
builddep("shortcut/autotools")
|
||||
builddep("libevent-dev @target")
|
||||
builddep("libncurses-dev @target")
|
||||
builddep("byacc")
|
||||
|
||||
|
||||
def build():
|
||||
os.environ["ac_cv_search_forkpty"] = "none required"
|
||||
os.environ["ac_cv_func_forkpty"] = "yes"
|
||||
cpp.configure([
|
||||
f"--prefix={get_prefix('tmux')}",
|
||||
"--enable-optimizations",
|
||||
"--enable-sixel",
|
||||
])
|
||||
cpp.make()
|
||||
cpp.make_install()
|
||||
|
||||
on_build(build)
|
||||
|
||||
|
||||
package("tmux")
|
||||
dep("semi-libc @same-arch")
|
||||
dep("libevent @same-arch")
|
||||
dep("libncurses @same-arch")
|
||||
cpp.use_auto_pack(["bin"])
|
||||
@@ -12,7 +12,7 @@ builddep("libintl-dev @target")
|
||||
builddep("libz-ng-dev @target")
|
||||
builddep("libncurses-dev @target")
|
||||
|
||||
version("2.42.2")
|
||||
version("2.42.4")
|
||||
description("a random collection of Linux utilities")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_managed("github://util-linux/util-linux#v2.42.4", "autotools")
|
||||
@@ -124,6 +124,7 @@ package("util-linux-swap")
|
||||
dep("libblkid (same)")
|
||||
dep("libmount (same)")
|
||||
dep("libsmartcols (same)")
|
||||
dep("libuuid (same)")
|
||||
on_pack(lambda composer: pack_bin(composer, ["sbin/swaplabel", "sbin/swapoff", "sbin/swapon", "sbin/mkswap"]))
|
||||
|
||||
package("util-linux-mount")
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
from lib import rust
|
||||
from lib.make import *
|
||||
|
||||
|
||||
version("50.0.1")
|
||||
description("A lightweight WebAssembly runtime that is fast, secure, and standards-compliant")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_managed("github://bytecodealliance/wasmtime#v50.0.1", "rust")
|
||||
|
||||
builddep("shortcut/rust")
|
||||
|
||||
|
||||
def build():
|
||||
rust.build([])
|
||||
|
||||
on_build(build)
|
||||
|
||||
|
||||
package("wasmtime")
|
||||
dep("semi-libc @same-arch")
|
||||
dep("libunwind @same-arch")
|
||||
rust.use_auto_pack(["bin"])
|
||||
@@ -60,7 +60,7 @@ def load_pkgbuild(pkgname):
|
||||
|
||||
def run_hooks(map, arg: typing.Any = None):
|
||||
current_dir = os.getcwd()
|
||||
for n in map.keys():
|
||||
for n in map:
|
||||
if n in lib.make._blocked_hooks:
|
||||
continue
|
||||
if arg:
|
||||
@@ -84,7 +84,7 @@ def cmd_build_package(package: str):
|
||||
|
||||
# Check architecture support
|
||||
if not lib.make._supported_arch(lib.arch.get_target()):
|
||||
print(f"Architecture {lib.arch.get_target()} is not supported for this package")
|
||||
lib.logging.error(f"Architecture {lib.arch.get_target()} is not supported for this package.")
|
||||
exit(1)
|
||||
|
||||
# Run `pre_build` hooks
|
||||
@@ -95,17 +95,20 @@ def cmd_build_package(package: str):
|
||||
os.chdir(lib.sources.sources_dir_name())
|
||||
lib.make._on_build()
|
||||
else:
|
||||
print("on_build(): Not defined")
|
||||
lib.logging.error("The pkgbuild file has specified no build function.")
|
||||
exit(1)
|
||||
|
||||
# Run `post_build` hooks
|
||||
run_hooks(hooks.post_build)
|
||||
|
||||
# Pack packages
|
||||
for pkgname in lib.make._pkginfo.keys():
|
||||
for pkgname in lib.make._pkginfo:
|
||||
lib.make._current_pkgname = pkgname
|
||||
|
||||
if pkgname == lib.make._key_global:
|
||||
continue
|
||||
else:
|
||||
lib.logging.step(f"Packing package \"{pkgname}\"...")
|
||||
|
||||
pkginfo = lib.make._pkginfo[pkgname]
|
||||
pkgver = pkginfo[lib.make._key_version]
|
||||
@@ -209,13 +212,17 @@ def cmd_build_atom(pkgname: str):
|
||||
load_pkgbuild(pkgname)
|
||||
|
||||
# Initialize build environment
|
||||
lib.logging.step("Preparing environment for Atom Build...")
|
||||
lib.atombuild.prepare_build_env(build_env_root, lib.make._builddep)
|
||||
lib.atombuild.copy_pkgbuild_tree(repo_root, pkgname, build_env_root)
|
||||
lib.atombuild.enter_build_env(
|
||||
build_env_root,
|
||||
["./x", "--target", lib.arch.get_target(), "build", pkgname],
|
||||
chdir="/Atom",
|
||||
)
|
||||
try:
|
||||
lib.atombuild.enter_build_env(
|
||||
build_env_root,
|
||||
["./x", "--target", lib.arch.get_target(), "build", pkgname],
|
||||
chdir="/Atom",
|
||||
)
|
||||
except:
|
||||
exit(1)
|
||||
|
||||
# Copy artifacts
|
||||
atom_target_dir = f"{build_env_root}/Atom/packages/{pkgname}/target"
|
||||
@@ -223,7 +230,7 @@ def cmd_build_atom(pkgname: str):
|
||||
for i in os.listdir(atom_target_dir):
|
||||
if i.endswith(".pkg"):
|
||||
shutil.copy2(f"{atom_target_dir}/{i}", f"{target_dir}/{i}")
|
||||
except Exception:
|
||||
except:
|
||||
pass
|
||||
|
||||
# Build success
|
||||
@@ -272,27 +279,33 @@ def cmd_check_updates(pkgname):
|
||||
exit(1)
|
||||
print(lib.managed_source.get_updates(lib.make._managed_source_url))
|
||||
|
||||
def main():
|
||||
if args.subcommand == "build":
|
||||
if args.atombuild:
|
||||
cmd_build_atom(args.BUILD_PKGNAME)
|
||||
else:
|
||||
cmd_build_package(args.BUILD_PKGNAME)
|
||||
elif args.subcommand == "clean":
|
||||
if args.all:
|
||||
pkgs = os.listdir("packages")
|
||||
else:
|
||||
pkgs = args.CLEAN_PKGNAME
|
||||
cmd_clean_package(pkgs)
|
||||
elif args.subcommand == "list":
|
||||
cmd_list(args.ITEM)
|
||||
elif args.subcommand == "repo-push":
|
||||
cmd_repo_push(args.REPO_DIR, args.REPO_PUSH_PKGNAME)
|
||||
elif args.subcommand == "source":
|
||||
if args.vendor:
|
||||
cmd_vendor_src(args.vendor, args.PKGNAME)
|
||||
if args.check_updates:
|
||||
cmd_check_updates(args.PKGNAME)
|
||||
else:
|
||||
print("error: no action specified", file=sys.stderr)
|
||||
exit(1)
|
||||
|
||||
if args.subcommand == "build":
|
||||
if args.atombuild:
|
||||
cmd_build_atom(args.BUILD_PKGNAME)
|
||||
else:
|
||||
cmd_build_package(args.BUILD_PKGNAME)
|
||||
elif args.subcommand == "clean":
|
||||
if args.all:
|
||||
pkgs = os.listdir("packages")
|
||||
else:
|
||||
pkgs = args.CLEAN_PKGNAME
|
||||
cmd_clean_package(pkgs)
|
||||
elif args.subcommand == "list":
|
||||
cmd_list(args.ITEM)
|
||||
elif args.subcommand == "repo-push":
|
||||
cmd_repo_push(args.REPO_DIR, args.REPO_PUSH_PKGNAME)
|
||||
elif args.subcommand == "source":
|
||||
if args.vendor:
|
||||
cmd_vendor_src(args.vendor, args.PKGNAME)
|
||||
if args.check_updates:
|
||||
cmd_check_updates(args.PKGNAME)
|
||||
else:
|
||||
print("error: no action specified", file=sys.stderr)
|
||||
exit(1)
|
||||
if __name__ == "__main__":
|
||||
try:
|
||||
main()
|
||||
except KeyboardInterrupt:
|
||||
exit(1)
|
||||
Reference in new issue
Block a user