Compare commits
| Author | SHA256 | Date | |
|---|---|---|---|
|
|
fa5d25b3f2 |
No files matched your search
+16
-4
@@ -5,12 +5,14 @@ import subprocess
|
||||
from . import packie
|
||||
|
||||
BASE_REQUIREMENTS = [
|
||||
# Core system
|
||||
"SemiOS.Assembly.CoreRuntime",
|
||||
"SemiOS.Assembly.Networking",
|
||||
"libgcc-compat",
|
||||
# Basic packages for running shell scripts
|
||||
"mksh",
|
||||
"coreutils",
|
||||
"findutils",
|
||||
"diffutils",
|
||||
# Packages for running `semios-packages` scripts
|
||||
"python",
|
||||
"packie",
|
||||
"zstd",
|
||||
"libarchive-tools",
|
||||
# Packages for building packages that require patching
|
||||
@@ -20,6 +22,16 @@ BASE_REQUIREMENTS = [
|
||||
"libz-ng",
|
||||
"liblzma",
|
||||
"libbzip2",
|
||||
# Basic libraries
|
||||
"sqlite",
|
||||
"libgcc-compat",
|
||||
"libcxx",
|
||||
"semi-libc",
|
||||
# Networking
|
||||
"ca-certificates",
|
||||
"certutil",
|
||||
"aws-lc-libssl",
|
||||
"aws-lc-tools",
|
||||
]
|
||||
|
||||
|
||||
|
||||
+3
-7
@@ -39,14 +39,10 @@ _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", "SemiOS.Assembly.NativeDevTools"]
|
||||
_builddep += ["semi-libc-dev", "clang", "llvm", "lld"]
|
||||
elif s == "shortcut/c++":
|
||||
builddep("shortcut/c")
|
||||
_builddep += ["libcxx-dev"]
|
||||
@@ -56,13 +52,13 @@ def builddep(s: str):
|
||||
builddep("shortcut/c")
|
||||
_builddep += ["cargo", "rust"]
|
||||
elif s == "shortcut/go":
|
||||
_builddep += ["go", "SemiOS.Assembly.NativeDevTools"]
|
||||
_builddep += ["go", "llvm"]
|
||||
elif s == "shortcut/cmake":
|
||||
_builddep += ["cmake", "ninja", "pkgconf"]
|
||||
elif s == "shortcut/meson":
|
||||
_builddep += ["meson", "ninja", "pkgconf"]
|
||||
else:
|
||||
_builddep += [s.replace("@target", f"@{current_target()}")]
|
||||
_builddep += [s.replace("@target", f"@{arch.get_target()}")]
|
||||
|
||||
|
||||
def package(s: str):
|
||||
|
||||
@@ -44,7 +44,3 @@ 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)
|
||||
+3
-7
@@ -4,10 +4,8 @@ import subprocess
|
||||
from . import arch, make, pkgcomposer, logging
|
||||
|
||||
|
||||
def _rust_triple(s: str) -> str:
|
||||
s = s.replace("-semios-linux", "-unknown-linux-musl")
|
||||
s = s.replace("riscv64", "riscv64gc")
|
||||
return s
|
||||
def _rust_triple(semios: str) -> str:
|
||||
return semios.replace("-semios-linux", "-unknown-linux-musl")
|
||||
|
||||
|
||||
def build(rem: list[str] = []):
|
||||
@@ -45,9 +43,7 @@ def _autopack_filter_lib(ent) -> bool:
|
||||
|
||||
|
||||
def _autopack_filter_bin(ent) -> bool:
|
||||
is_executable_file = os.access(ent.path, os.X_OK) and ent.is_file(follow_symlinks=False)
|
||||
is_not_dylib = not (ent.path.endswith(".so") or ent.path.endswith(".dll") or ent.path.endswith(".dylib"))
|
||||
return is_executable_file and is_not_dylib
|
||||
return os.access(ent.path, os.X_OK) and ent.is_file(follow_symlinks=False)
|
||||
|
||||
|
||||
def _auto_pack(profiles: list[str], pc: pkgcomposer.PkgComposer):
|
||||
|
||||
@@ -1,37 +0,0 @@
|
||||
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,7 +35,6 @@ 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}")
|
||||
@@ -48,7 +47,7 @@ def build():
|
||||
if filename:
|
||||
pkgname = filename.replace(".otf", "")
|
||||
package(pkgname)
|
||||
configure_script(pkgdir + "/configure/fontconfig")
|
||||
configure_script("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.10")
|
||||
version("0.10.9")
|
||||
description("Modern, portable and fast implementation of service supervisor and the init daemon.")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_managed("github://sisungo/airup#v0.10.10", "rust")
|
||||
source_managed("github://sisungo/airup#v0.10.9", "rust")
|
||||
|
||||
builddep("shortcut/rust")
|
||||
|
||||
@@ -44,15 +44,8 @@ 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)
|
||||
@@ -1,24 +0,0 @@
|
||||
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,7 +16,6 @@ builddep("libz-ng-dev @target")
|
||||
builddep("libcurl-dev @target")
|
||||
builddep("libgit2-dev @target")
|
||||
builddep("libssh2-dev @target")
|
||||
builddep("rust-bindgen")
|
||||
|
||||
|
||||
def build():
|
||||
|
||||
@@ -1,32 +0,0 @@
|
||||
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"])
|
||||
@@ -1,28 +0,0 @@
|
||||
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"])
|
||||
@@ -1,61 +0,0 @@
|
||||
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)
|
||||
@@ -1,117 +0,0 @@
|
||||
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,7 @@ from lib.make import *
|
||||
from lib import cpp
|
||||
|
||||
|
||||
version("14.3.1+1")
|
||||
version("14.3.1")
|
||||
description("HarfBuzz text shaping engine")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_managed("github://harfbuzz/harfbuzz#14.3.1")
|
||||
@@ -20,14 +20,26 @@ 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=enabled",
|
||||
"-Dglib=disabled",
|
||||
"-Dgobject=enabled",
|
||||
"-Dcairo=enabled",
|
||||
"-Dicu=enabled",
|
||||
@@ -39,24 +51,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("libpng @same-arch")
|
||||
dep("libglib @same-arch")
|
||||
dep("libgobject @same-arch")
|
||||
dep("libz @same-arch")
|
||||
provide("libharfbuzz-gobject @same-arch")
|
||||
cpp.use_auto_pack(["lib"])
|
||||
|
||||
package("harfbuzz-tools")
|
||||
dep("libharfbuzz (same)")
|
||||
cpp.use_auto_pack(["bin"])
|
||||
on_pack(lambda c: pack_glob(c, ["lib/*.so*"], ["gobject"]))
|
||||
|
||||
package("libharfbuzz-dev")
|
||||
dep("libharfbuzz (same)")
|
||||
@@ -65,6 +85,16 @@ dep("libcairo-dev @same-arch")
|
||||
dep("libicu4c-dev @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")
|
||||
provide("libharfbuzz-gobject-dev @same-arch")
|
||||
cpp.use_auto_pack(["dev"])
|
||||
on_pack(lambda c: pack_glob(c, ["lib/pkgconfig/*gobject*", "include/harfbuzz/*gobject*", "include/gir"]))
|
||||
@@ -1,36 +0,0 @@
|
||||
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"])
|
||||
@@ -2,10 +2,10 @@ import lib.cpp as cpp
|
||||
from lib.make import *
|
||||
|
||||
|
||||
version("3.8.11")
|
||||
version("3.8.9")
|
||||
description("Multi-format archive and compression library")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_managed("github://libarchive/libarchive#v3.8.11")
|
||||
source_managed("github://libarchive/libarchive#v3.8.9")
|
||||
|
||||
builddep("shortcut/c")
|
||||
builddep("shortcut/cmake")
|
||||
@@ -30,15 +30,16 @@ 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")
|
||||
@@ -46,9 +47,8 @@ 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"])
|
||||
@@ -1,40 +0,0 @@
|
||||
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")
|
||||
@@ -1,11 +0,0 @@
|
||||
--- 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 = [
|
||||
+60
-72
@@ -1,15 +1,14 @@
|
||||
import glob
|
||||
import os
|
||||
|
||||
from lib.make import *
|
||||
from lib import cpp, arch
|
||||
|
||||
|
||||
llvm_version = "~23.0.0"
|
||||
|
||||
version("26.2.6")
|
||||
version("26.2.0")
|
||||
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.6.tar.xz")
|
||||
source_url("https://archive.mesa3d.org/mesa-26.2.0.tar.xz")
|
||||
|
||||
builddep("shortcut/meson")
|
||||
builddep("shortcut/c++")
|
||||
@@ -18,8 +17,8 @@ builddep("wayland-protocols @target")
|
||||
builddep("libffi-dev @target")
|
||||
builddep("libexpat-dev @target")
|
||||
builddep("pkgconf @target")
|
||||
builddep(f"libllvm-dev ({llvm_version}) @target")
|
||||
builddep(f"libclang-dev ({llvm_version}) @target")
|
||||
builddep("libllvm-dev @target")
|
||||
builddep("libclang-dev @target")
|
||||
builddep("libunwind-dev @target")
|
||||
builddep("libz-ng-dev @target")
|
||||
builddep("libzstd-dev @target")
|
||||
@@ -29,7 +28,7 @@ builddep("libopengl-dev @target")
|
||||
builddep("libglesv2-dev @target")
|
||||
builddep("libva-dev @target")
|
||||
builddep("libdrm-dev @target")
|
||||
builddep(f"libllvmspirv-dev ({llvm_version}) @target")
|
||||
builddep("libllvmspirv-dev @target")
|
||||
builddep("spirv-tools-dev @target")
|
||||
builddep("libpng-dev @target")
|
||||
builddep("libarchive-dev @target")
|
||||
@@ -46,7 +45,13 @@ builddep("glslang")
|
||||
|
||||
archspec = {
|
||||
"aarch64-semios-linux": {
|
||||
"gallium_drivers": "asahi,panfrost,v3d,vc4,llvmpipe,svga,zink,virgl",
|
||||
"vulkan_drivers": [
|
||||
"mesa-vulkan-asahi",
|
||||
"mesa-vulkan-freedreno",
|
||||
"mesa-vulkan-intel",
|
||||
"mesa-vulkan-lvp",
|
||||
"mesa-vulkan-panfrost",
|
||||
],
|
||||
}
|
||||
}
|
||||
|
||||
@@ -65,7 +70,7 @@ def build():
|
||||
# Generic directories
|
||||
f"--libdir=/lib/{arch.get_target()}",
|
||||
f"--includedir=/lib/{arch.get_target()}/include",
|
||||
"--datadir=/share",
|
||||
f"--datadir=/share",
|
||||
|
||||
# Platform selection
|
||||
"-Dplatforms=wayland",
|
||||
@@ -75,12 +80,12 @@ def build():
|
||||
"-Dxmlconfig=enabled",
|
||||
|
||||
# Gallium
|
||||
f"-Dgallium-drivers={archspec[arch.get_target()]['gallium_drivers']}",
|
||||
"-Dgallium-drivers=auto",
|
||||
"-Dgallium-va=enabled",
|
||||
f"-Dva-libs-path=/lib/{arch.get_target()}/dri",
|
||||
|
||||
# Vulkan
|
||||
"-Dvulkan-drivers=amd,broadcom,intel,intel_hasvk,panfrost,asahi,imagination,swrast",
|
||||
"-Dvulkan-drivers=auto",
|
||||
"-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",
|
||||
@@ -175,6 +180,9 @@ 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")
|
||||
@@ -188,7 +196,7 @@ on_pack(lambda composer: pack_dev_simple(composer, "gbm"))
|
||||
|
||||
package("libgallium")
|
||||
dep("libdrm @same-arch")
|
||||
dep(f"libllvm ({llvm_version}) @same-arch")
|
||||
dep("libllvm @same-arch")
|
||||
dep("libexpat @same-arch")
|
||||
dep("libz @same-arch")
|
||||
dep("libzstd @same-arch")
|
||||
@@ -205,7 +213,6 @@ 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)")
|
||||
@@ -215,66 +222,47 @@ dep("libwayland-dev @same-arch")
|
||||
dep("libegl-mesa (same)")
|
||||
on_pack(lambda composer: pack_dev_simple(composer, "EGL"))
|
||||
|
||||
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-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-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-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-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-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-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-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-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"))
|
||||
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"))
|
||||
@@ -1,22 +0,0 @@
|
||||
from lib import rust
|
||||
from lib.make import *
|
||||
|
||||
|
||||
version("3.0.0")
|
||||
description("A Modern Linker in Rust")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_managed("github://rui314/mold#v3.0.0", "rust")
|
||||
|
||||
builddep("shortcut/rust")
|
||||
|
||||
|
||||
def build():
|
||||
rust.build()
|
||||
|
||||
on_build(build)
|
||||
|
||||
|
||||
package("mold")
|
||||
dep("semi-libc @same-arch")
|
||||
dep("libunwind @same-arch")
|
||||
rust.use_auto_pack(["bin"])
|
||||
@@ -2,10 +2,10 @@ from lib import rust
|
||||
from lib.make import *
|
||||
|
||||
|
||||
version("0.1.0-alpha.5")
|
||||
version("0.1.0-alpha.4")
|
||||
description("SemiOS package manager")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_managed("gitea://gitea.semilabs.org/semios/packie#v0.1.0-alpha.5", "rust")
|
||||
source_managed("gitea://gitea.semilabs.org/semios/packie#v0.1.0-alpha.4", "rust")
|
||||
|
||||
builddep("shortcut/rust")
|
||||
builddep("libsqlite-dev @target")
|
||||
@@ -19,6 +19,5 @@ on_build(build)
|
||||
|
||||
package("packie")
|
||||
dep("semi-libc @same-arch")
|
||||
dep("libunwind @same-arch")
|
||||
dep("libsqlite @same-arch")
|
||||
rust.use_auto_pack(["bin"])
|
||||
@@ -1,13 +1,11 @@
|
||||
import glob
|
||||
|
||||
from lib import cpp
|
||||
from lib.make import *
|
||||
|
||||
|
||||
version("10.49")
|
||||
version("10.47")
|
||||
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.49/pcre2-10.49.tar.gz")
|
||||
source_url("https://github.com/PCRE2Project/pcre2/releases/download/pcre2-10.47/pcre2-10.47.tar.gz")
|
||||
|
||||
builddep("shortcut/c")
|
||||
builddep("shortcut/autotools")
|
||||
@@ -19,14 +17,7 @@ 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()
|
||||
@@ -34,31 +25,14 @@ 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)")
|
||||
on_pack(pack_tools)
|
||||
cpp.use_auto_pack(["bin"])
|
||||
|
||||
package("libpcre2-dev")
|
||||
dep("libpcre2 (same)")
|
||||
dep("semi-libc-dev @same-arch")
|
||||
on_pack(pack_dev)
|
||||
dep("semi-libc @same-arch")
|
||||
cpp.use_auto_pack(["dev"])
|
||||
@@ -0,0 +1,28 @@
|
||||
from lib.make import *
|
||||
from lib import cpp, arch
|
||||
|
||||
|
||||
version("4.0.9")
|
||||
description("an open-source, object-oriented programming language")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_url("https://cache.ruby-lang.org/pub/ruby/4.0/ruby-4.0.9.tar.gz")
|
||||
|
||||
builddep("shortcut/c")
|
||||
builddep("shortcut/autotools")
|
||||
|
||||
|
||||
def build():
|
||||
cpp.configure([
|
||||
"--enable-rpath",
|
||||
"--enable-shared",
|
||||
"--disable-yjit",
|
||||
"--disable-zjit",
|
||||
"--without-git",
|
||||
"--without-gcc",
|
||||
"--without-gmp",
|
||||
"--without-jemalloc",
|
||||
])
|
||||
cpp.make()
|
||||
cpp.make_install()
|
||||
|
||||
on_build(build)
|
||||
@@ -1,32 +0,0 @@
|
||||
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,16 +40,7 @@ package("SemiOS.Assembly.Networking")
|
||||
description("Assembly of SemiOS core networking experience")
|
||||
dep("aws-lc-libssl @same-arch")
|
||||
dep("aws-lc-tools @same-arch")
|
||||
dep("certutil @same-arch")
|
||||
dep("ca-certificates")
|
||||
dep("certutil @same-arch")
|
||||
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`..."))
|
||||
Reference in new issue
Block a user