Compare commits
48
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 | ||
|
|
58e4282e1e | ||
|
|
0ca500fd6d |
No files matched your search
+4
-16
@@ -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",
|
||||
]
|
||||
|
||||
|
||||
|
||||
+7
-3
@@ -39,10 +39,14 @@ _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"]
|
||||
@@ -52,13 +56,13 @@ def builddep(s: str):
|
||||
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):
|
||||
|
||||
@@ -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)
|
||||
+4
-2
@@ -4,8 +4,10 @@ import subprocess
|
||||
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] = []):
|
||||
|
||||
@@ -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,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():
|
||||
|
||||
@@ -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,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",
|
||||
|
||||
@@ -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"])
|
||||
@@ -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,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)
|
||||
@@ -1,3 +1,3 @@
|
||||
-L/lib/aarch64-semios-linux
|
||||
$-Wl,-L/lib/aarch64-semios-linux
|
||||
-B/lib/aarch64-semios-linux
|
||||
-rtlib=compiler-rt
|
||||
@@ -1,3 +1,3 @@
|
||||
-L/lib/riscv64-semios-linux
|
||||
$-Wl,-L/lib/riscv64-semios-linux
|
||||
-B/lib/riscv64-semios-linux
|
||||
-rtlib=compiler-rt
|
||||
@@ -1,3 +1,3 @@
|
||||
-L/lib/wasm32-semios-wasip3
|
||||
$-Wl,-L/lib/wasm32-semios-wasip3
|
||||
-B/lib/wasm32-semios-wasip3
|
||||
-rtlib=compiler-rt
|
||||
@@ -1,3 +1,3 @@
|
||||
-L/lib/x86_64-semios-linux
|
||||
$-Wl,-L/lib/x86_64-semios-linux
|
||||
-B/lib/x86_64-semios-linux
|
||||
-rtlib=compiler-rt
|
||||
@@ -4,24 +4,23 @@ import shutil
|
||||
import glob
|
||||
|
||||
import lib
|
||||
from lib import arch, cpp, packie
|
||||
from lib import cpp, packie
|
||||
from lib.make import *
|
||||
|
||||
|
||||
pkgver = "23.1.4"
|
||||
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.4")
|
||||
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")
|
||||
|
||||
|
||||
@@ -29,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}"
|
||||
|
||||
@@ -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"))
|
||||
@@ -6,10 +6,10 @@ from lib import cpp, packie
|
||||
from lib.make import *
|
||||
|
||||
|
||||
version("27.0.0")
|
||||
version("27.0.1.1+0004")
|
||||
description("JDK implementation of the OpenJDK project.")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_managed("github://openjdk/jdk#v27ga")
|
||||
source_managed("github://openjdk/jdk27u#jdk-27.0.1.1+4-manual")
|
||||
|
||||
builddep("shortcut/c++")
|
||||
builddep("shortcut/autotools")
|
||||
@@ -26,13 +26,17 @@ builddep("linux-dev @target")
|
||||
builddep("bash")
|
||||
builddep("file")
|
||||
builddep("zip")
|
||||
builddep("openjdk @target")
|
||||
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",
|
||||
@@ -84,7 +88,11 @@ def pack(composer):
|
||||
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)
|
||||
@@ -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"
|
||||
Reference in new issue
Block a user