forked from semios/semios-packages
Compare commits
27
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ad3a7e8372 | ||
|
|
9c432fcabb | ||
|
|
89744adb38 | ||
|
|
fc753703c4 | ||
|
|
132ed2d8b3 | ||
|
|
41d0b79083 | ||
|
|
232aa0b690 | ||
|
|
65dd900ea4 | ||
|
|
ea440a2465 | ||
|
|
e7d77b63b3 | ||
|
|
2f7053488b | ||
|
|
cb9842b371 | ||
|
|
25525068bd | ||
|
|
2a7def094d | ||
|
|
91b153d21b | ||
|
|
fb5f90e0bb | ||
|
|
0238507da1 | ||
|
|
21bb0c0416 | ||
|
|
614aae909b | ||
|
|
71ae4dd1cb | ||
|
|
19d58033f0 | ||
|
|
7c61d7ca8b | ||
|
|
cfb2a07fa4 | ||
|
|
a7afab336b | ||
|
|
e0af0577bf | ||
|
|
aa19be566b | ||
|
|
2b3204cb9a |
+13
-4
@@ -32,19 +32,32 @@ BASE_REQUIREMENTS = [
|
||||
|
||||
|
||||
def _prepare_build_env_base_files(root: str):
|
||||
# Create root directory
|
||||
os.makedirs(root, exist_ok=True)
|
||||
|
||||
# Create var, run and tmp
|
||||
os.mkdir(f"{root}/var")
|
||||
os.mkdir(f"{root}/var/tmp")
|
||||
os.mkdir(f"{root}/var/run")
|
||||
os.mkdir(f"{root}/tmp")
|
||||
os.mkdir(f"{root}/run")
|
||||
|
||||
# Copy repository config files
|
||||
os.makedirs(f"{root}/var/db/packie")
|
||||
shutil.copytree("/var/config/packie/repos.d", f"{root}/var/config/packie/repos.d")
|
||||
|
||||
# Create directories for kernel pseudo filesystems
|
||||
os.mkdir(f"{root}/dev")
|
||||
os.mkdir(f"{root}/sys")
|
||||
os.mkdir(f"{root}/proc")
|
||||
|
||||
# Create home directory of root (some scripts may require it)
|
||||
os.makedirs(f"{root}/home/root")
|
||||
|
||||
# Copy DNS config
|
||||
os.makedirs(f"{root}/etc", exist_ok=True)
|
||||
shutil.copy2("/etc/resolv.conf", f"{root}/etc/resolv.conf")
|
||||
|
||||
|
||||
def prepare_build_env(root: str, extreq: list[str] = []):
|
||||
# Skip if the environment is already initialized
|
||||
@@ -65,10 +78,6 @@ def prepare_build_env(root: str, extreq: list[str] = []):
|
||||
# Refresh certificates
|
||||
enter_build_env(root, ["certutil", "refresh"])
|
||||
|
||||
# Copy DNS config
|
||||
os.makedirs(f"{root}/etc", exist_ok=True)
|
||||
shutil.copy2("/etc/resolv.conf", f"{root}/etc/resolv.conf")
|
||||
|
||||
# Create initialized tag
|
||||
with open(f"{root}/.INIT", "wt+") as file:
|
||||
file.write("OK")
|
||||
|
||||
@@ -7,6 +7,7 @@ from . import pkgcomposer, sources
|
||||
_key_global = "@global"
|
||||
_key_version = "version"
|
||||
_key_description = "description"
|
||||
_key_maintainers = "maintainers"
|
||||
_key_on_pack = "on_pack"
|
||||
_key_arch_any = "arch_any"
|
||||
_key_links = "links"
|
||||
@@ -19,6 +20,7 @@ _pkginfo: dict[str, dict[str, typing.Any]] = {
|
||||
_key_global: {
|
||||
_key_links: [],
|
||||
_key_dependencies: [],
|
||||
_key_maintainers: [],
|
||||
_key_provides: [],
|
||||
_key_recommendations: [],
|
||||
},
|
||||
@@ -69,6 +71,10 @@ def description(s: str):
|
||||
_pkginfo[_current_pkgname][_key_description] = s
|
||||
|
||||
|
||||
def maintainer(s: str):
|
||||
_pkginfo[_current_pkgname][_key_maintainers] += [s]
|
||||
|
||||
|
||||
def arch_any():
|
||||
_pkginfo[_current_pkgname][_key_arch_any] = True
|
||||
|
||||
|
||||
@@ -5,6 +5,8 @@ from lib import rust
|
||||
from lib.make import *
|
||||
|
||||
version("0.10.9")
|
||||
description("Modern, portable and fast implementation of service supervisor and the init daemon.")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_url("https://github.com/sisungo/airup/archive/refs/tags/v0.10.9.tar.gz")
|
||||
|
||||
builddep("shortcut/rust")
|
||||
|
||||
@@ -4,10 +4,13 @@ from lib.make import *
|
||||
upstream_version = "1.2.16.1"
|
||||
|
||||
version(upstream_version)
|
||||
description("audio and MIDI functionality for the Linux operating system")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_url("https://www.alsa-project.org/files/pub/lib/alsa-lib-1.2.16.1.tar.bz2")
|
||||
|
||||
builddep("shortcut/c")
|
||||
builddep("shortcut/autotools")
|
||||
builddep(f"linux-dev @{arch.get_target()}")
|
||||
|
||||
|
||||
def build():
|
||||
|
||||
@@ -0,0 +1,37 @@
|
||||
from lib.make import *
|
||||
from lib import cpp
|
||||
|
||||
version("1.2.16")
|
||||
description("audio and MIDI functionality for the Linux operating system")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_url("https://www.alsa-project.org/files/pub/utils/alsa-utils-1.2.16.tar.bz2")
|
||||
|
||||
builddep("shortcut/c")
|
||||
builddep("shortcut/autotools")
|
||||
builddep("pkgconf")
|
||||
builddep(f"libncurses-dev @{arch.get_target()}")
|
||||
builddep(f"alsa-lib-dev @{arch.get_target()}")
|
||||
builddep(f"libintl-dev @{arch.get_target()}")
|
||||
builddep("gettext")
|
||||
|
||||
def build():
|
||||
cpp.configure([f"--prefix={get_prefix('alsa-utils')}", "--disable-nls"])
|
||||
cpp.make()
|
||||
cpp.make_install()
|
||||
|
||||
on_build(build)
|
||||
|
||||
|
||||
def pack_alsa_utils(composer):
|
||||
composer.add_dir("bin", "bin")
|
||||
composer.add_dir("sbin", "bin", merge=True)
|
||||
composer.add_dir("lib", "lib")
|
||||
composer.makedir("share")
|
||||
composer.add_dir("share/alsa", "share/alsa")
|
||||
composer.add_dir("share/sounds", "share/sounds")
|
||||
|
||||
package("alsa-utils")
|
||||
dep("semi-libc @same-arch")
|
||||
dep("alsa-lib @same-arch")
|
||||
dep("libncurses @same-arch")
|
||||
on_pack(pack_alsa_utils)
|
||||
@@ -4,6 +4,8 @@ from lib import cpp
|
||||
from lib.make import *
|
||||
|
||||
version("2026.4.26")
|
||||
description("The One True Awk programming language")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_url("https://github.com/onetrueawk/awk/archive/refs/tags/20260426.tar.gz")
|
||||
|
||||
builddep("shortcut/c")
|
||||
|
||||
@@ -4,6 +4,8 @@ import lib.cpp as cpp
|
||||
from lib.make import *
|
||||
|
||||
version("5.1.0")
|
||||
description("a general-purpose cryptographic library maintained by the AWS Cryptography team")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_url("https://github.com/aws/aws-lc/archive/refs/tags/v5.1.0.tar.gz")
|
||||
|
||||
builddep("shortcut/c")
|
||||
@@ -56,6 +58,7 @@ package("aws-lc-tools")
|
||||
cpp.use_auto_pack(["bin"])
|
||||
dep("aws-lc-libcrypto (same)")
|
||||
dep("aws-lc-libssl (same)")
|
||||
dep("libcxx @same-arch")
|
||||
|
||||
package("aws-lc-dev")
|
||||
cpp.use_auto_pack(["dev"])
|
||||
|
||||
@@ -0,0 +1,85 @@
|
||||
import os
|
||||
|
||||
from lib.make import *
|
||||
from lib import cpp
|
||||
|
||||
version("5.3")
|
||||
description("the Bourne Again SHell")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_url("https://ftp.gnu.org/gnu/bash/bash-5.3.tar.gz")
|
||||
|
||||
builddep("shortcut/c")
|
||||
builddep("shortcut/autotools")
|
||||
builddep(f"libncurses-dev @{arch.get_target()}")
|
||||
|
||||
def build():
|
||||
cpp.configure([
|
||||
f"--prefix={get_prefix('bash')}",
|
||||
f"--datarootdir={get_prefix('bash-doc')}/share",
|
||||
f"--localedir={get_prefix('bash')}/share/locale",
|
||||
"--enable-alias",
|
||||
"--enable-alt-array-implementation",
|
||||
"--enable-arith-for-command",
|
||||
"--enable-array-variables",
|
||||
"--enable-bang-history",
|
||||
"--enable-brace-expansion",
|
||||
"--enable-casemod-attributes",
|
||||
"--enable-casemod-expansions",
|
||||
"--enable-command-timing",
|
||||
"--enable-cond-command",
|
||||
"--enable-cond-regexp",
|
||||
"--enable-coprocesses",
|
||||
"--enable-directory-stack",
|
||||
"--enable-dparen-arithmetic",
|
||||
"--enable-extended-glob",
|
||||
"--enable-function-import",
|
||||
"--enable-glob-asciiranges-default",
|
||||
"--enable-help-builtin",
|
||||
"--enable-history",
|
||||
"--enable-job-control",
|
||||
"--enable-multibyte",
|
||||
"--enable-net-redirections",
|
||||
"--enable-process-substitution",
|
||||
"--enable-progcomp",
|
||||
"--enable-prompt-string-decoding",
|
||||
"--enable-readline",
|
||||
"--enable-restricted",
|
||||
"--enable-select",
|
||||
"--enable-separate-helpfiles",
|
||||
"--enable-single-help-strings",
|
||||
"--enable-translatable-strings",
|
||||
"--without-bash-malloc",
|
||||
])
|
||||
cpp.make()
|
||||
cpp.make_install()
|
||||
|
||||
on_build(build)
|
||||
|
||||
def pack_bash(composer):
|
||||
composer.add_dir("bin", "bin")
|
||||
composer.makedir("lib")
|
||||
composer.add_dir("lib/bash", "lib/bash")
|
||||
os.remove(f"{composer.workdir}/bundle/lib/bash/loadables.h")
|
||||
os.remove(f"{composer.workdir}/bundle/lib/bash/Makefile.inc")
|
||||
os.remove(f"{composer.workdir}/bundle/lib/bash/Makefile.sample")
|
||||
composer.makedir("share")
|
||||
composer.add_dir("share/locale", "share/locale")
|
||||
|
||||
def pack_doc(composer):
|
||||
composer.makedir("share")
|
||||
composer.add_dir("share/bash", "share/bash")
|
||||
composer.add_dir("share/doc", "share/doc")
|
||||
composer.add_dir("share/info", "share/info")
|
||||
composer.add_dir("share/man", "share/man")
|
||||
|
||||
package("bash")
|
||||
dep("semi-libc @same-arch")
|
||||
dep("libncurses @same-arch")
|
||||
on_pack(pack_bash)
|
||||
|
||||
package("bash-dev")
|
||||
dep("bash (same)")
|
||||
cpp.use_auto_pack(["dev"])
|
||||
|
||||
package("bash-doc")
|
||||
on_pack(pack_doc)
|
||||
@@ -2,6 +2,8 @@ from lib import arch, cpp
|
||||
from lib.make import *
|
||||
|
||||
version("7.0.3")
|
||||
description("An implementation of the POSIX bc calculator with GNU extensions and dc")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_url("https://github.com/gavinhoward/bc/releases/download/7.0.3/bc-7.0.3.tar.gz")
|
||||
|
||||
builddep("shortcut/c")
|
||||
|
||||
@@ -2,6 +2,8 @@ from lib import cpp
|
||||
from lib.make import *
|
||||
|
||||
version("3.7.91")
|
||||
description("a general-purpose parser generator that converts an annotated context-free grammar into a deterministic LR or generalized LR (GLR) parser employing LALR(1) parser tables")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_url("https://alpha.gnu.org/gnu/bison/bison-3.7.91.tar.xz")
|
||||
|
||||
builddep("shortcut/c")
|
||||
|
||||
@@ -6,6 +6,8 @@ from lib.make import *
|
||||
VERSION = "2026.6.19"
|
||||
|
||||
version(VERSION)
|
||||
description("The BSD make utility ported to non-BSD systems")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_url("https://www.crufty.net/ftp/pub/sjg/bmake-20260619.tar.gz")
|
||||
|
||||
builddep("shortcut/c")
|
||||
|
||||
@@ -4,6 +4,8 @@ from lib import cpp
|
||||
from lib.make import *
|
||||
|
||||
version("1.2.0")
|
||||
description("Brotli compression format")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_url("https://github.com/google/brotli/archive/refs/tags/v1.2.0.tar.gz")
|
||||
|
||||
|
||||
|
||||
@@ -4,6 +4,8 @@ from lib import cpp
|
||||
from lib.make import *
|
||||
|
||||
version("2.0")
|
||||
description("Berkeley yacc")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_url("https://www.invisible-island.net/archives/byacc/byacc-2.0.tgz")
|
||||
|
||||
builddep("shortcut/c")
|
||||
|
||||
@@ -10,6 +10,8 @@ builddep("shortcut/c")
|
||||
builddep("shortcut/autotools")
|
||||
|
||||
version(f"{upstream_version}")
|
||||
description("a freely available, patent free, high-quality data compressor")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_url(f"https://sourceware.org/pub/bzip2/bzip2-{upstream_version}.tar.gz")
|
||||
|
||||
|
||||
|
||||
@@ -2,6 +2,8 @@ from lib import cpp
|
||||
from lib.make import *
|
||||
|
||||
version("1.34.6")
|
||||
description("A C library for asynchronous DNS requests")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_url(
|
||||
"https://github.com/c-ares/c-ares/releases/download/v1.34.6/c-ares-1.34.6.tar.gz"
|
||||
)
|
||||
|
||||
@@ -3,6 +3,8 @@ import os
|
||||
from lib.make import *
|
||||
|
||||
version("2026.7.4")
|
||||
description("SemiOS system-level trusted CA database")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_url(
|
||||
"https://gitea.semilabs.org/semios/ca-certificates/releases/download/v2026.07.04/ca-certificates-2026.07.04.tar"
|
||||
)
|
||||
|
||||
@@ -2,6 +2,8 @@ from lib import rust
|
||||
from lib.make import *
|
||||
|
||||
version("0.1.0")
|
||||
description("SemiOS certification utility")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_url("https://gitea.semilabs.org/semios/certutil/archive/v0.1.0.tar.gz")
|
||||
|
||||
builddep("shortcut/rust")
|
||||
|
||||
@@ -8,6 +8,8 @@ upstream_version = "4.3.4"
|
||||
[upstream_major, upstream_minor, upstream_rev] = upstream_version.split(".")
|
||||
|
||||
version(upstream_version)
|
||||
description("a cross-platform, open-source build system generator")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_url(
|
||||
"https://github.com/Kitware/CMake/releases/download/v4.3.4/cmake-4.3.4.tar.gz"
|
||||
)
|
||||
@@ -60,4 +62,8 @@ package("cmake")
|
||||
dep("semi-libc @same-arch")
|
||||
dep("libcxx @same-arch")
|
||||
dep("libcurl @same-arch")
|
||||
dep("librhash @same-arch")
|
||||
dep("libz @same-arch")
|
||||
dep("libarchive @same-arch")
|
||||
dep("libexpat @same-arch")
|
||||
on_pack(pack_cmake)
|
||||
|
||||
@@ -1,8 +1,10 @@
|
||||
import lib.rust as rust
|
||||
from lib.make import *
|
||||
|
||||
version("0.9.0")
|
||||
source_url("https://github.com/uutils/coreutils/archive/refs/tags/0.9.0.tar.gz")
|
||||
version("0.10.0")
|
||||
description("system core utilities")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_url("https://github.com/uutils/coreutils/archive/refs/tags/0.10.0.tar.gz")
|
||||
block_hook("autolink")
|
||||
|
||||
builddep("shortcut/rust")
|
||||
|
||||
@@ -2,6 +2,8 @@ from lib import cpp, arch
|
||||
from lib.make import *
|
||||
|
||||
version("8.21.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")
|
||||
|
||||
builddep("shortcut/c")
|
||||
|
||||
@@ -0,0 +1,55 @@
|
||||
import os
|
||||
|
||||
from lib.make import *
|
||||
from lib import cpp
|
||||
|
||||
version("1.16.2")
|
||||
description("a message bus system, a simple way for applications to talk to one another")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_url("https://dbus.freedesktop.org/releases/dbus/dbus-1.16.2.tar.xz")
|
||||
|
||||
builddep("shortcut/c")
|
||||
builddep("shortcut/meson")
|
||||
builddep("gettext")
|
||||
builddep(f"libintl-dev @{arch.get_target()}")
|
||||
builddep(f"glib-dev @{arch.get_target()}")
|
||||
builddep("pkgconf")
|
||||
|
||||
|
||||
def build():
|
||||
cpp.meson_setup([
|
||||
"-Dapparmor=disabled",
|
||||
"-Dmessage_bus=false",
|
||||
"-Druntime_dir=/run",
|
||||
"-Dsystemd=disabled",
|
||||
"--prefix=/",
|
||||
f"--libdir={get_prefix('libdbus')}/lib",
|
||||
f"--bindir={get_prefix('dbus-tools')}/bin",
|
||||
f"--includedir={get_prefix('libdbus-dev')}/include",
|
||||
"--sysconfdir=/var/config",
|
||||
"--localstatedir=/var/db/dbus",
|
||||
])
|
||||
cpp.meson_compile()
|
||||
cpp.meson_install()
|
||||
|
||||
on_build(build)
|
||||
|
||||
def pack_libdbus(composer):
|
||||
composer.makedir("lib")
|
||||
for i in os.listdir("lib"):
|
||||
if not ".so" in i:
|
||||
continue
|
||||
composer.addfile(f"lib/{i}", f"lib/{i}")
|
||||
os.symlink(f"{get_prefix('libdbus-dev')}/lib/dbus-1.0", f"{composer.workdir}/bundle/lib/dbus-1.0")
|
||||
|
||||
package("libdbus")
|
||||
dep("semi-libc @same-arch")
|
||||
on_pack(pack_libdbus)
|
||||
|
||||
package("dbus-tools")
|
||||
dep("libdbus (same)")
|
||||
cpp.use_auto_pack(["bin"])
|
||||
|
||||
package("libdbus-dev")
|
||||
dep("libdbus (same)")
|
||||
cpp.use_auto_pack(["dev"])
|
||||
@@ -2,6 +2,8 @@ import lib.rust as rust
|
||||
from lib.make import *
|
||||
|
||||
version("0.5.0")
|
||||
description("utility to compute difference between text files")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_url("https://github.com/uutils/diffutils/archive/refs/tags/v0.5.0.tar.gz")
|
||||
|
||||
builddep("shortcut/rust")
|
||||
|
||||
@@ -4,6 +4,8 @@ import lib.cpp as cpp
|
||||
from lib.make import *
|
||||
|
||||
version("2.8.1")
|
||||
description("Fast streaming XML parser written in C99")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_url(
|
||||
"https://github.com/libexpat/libexpat/releases/download/R_2_8_1/expat-2.8.1.tar.gz"
|
||||
)
|
||||
|
||||
@@ -6,6 +6,8 @@ from lib.make import *
|
||||
VERSION = "5.48"
|
||||
|
||||
version(VERSION)
|
||||
description("utility to infer file type and information")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_git("https://github.com/file/file.git", "FILE5_48")
|
||||
|
||||
builddep("shortcut/c")
|
||||
|
||||
@@ -1,8 +1,10 @@
|
||||
import lib.rust as rust
|
||||
from lib.make import *
|
||||
|
||||
version("0.9.0")
|
||||
source_url("https://github.com/uutils/findutils/archive/refs/tags/0.9.0.tar.gz")
|
||||
version("0.10.0")
|
||||
description("implementation of the UNIX findutils")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_url("https://github.com/uutils/findutils/archive/refs/tags/0.10.0.tar.gz")
|
||||
|
||||
builddep("shortcut/rust")
|
||||
|
||||
|
||||
@@ -2,6 +2,8 @@ from lib import cpp
|
||||
from lib.make import *
|
||||
|
||||
version("2.6.4")
|
||||
description("The Fast Lexical Analyzer - scanner generator for lexing in C and C++")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_url("https://github.com/westes/flex/releases/download/v2.6.4/flex-2.6.4.tar.gz")
|
||||
|
||||
builddep("shortcut/c")
|
||||
|
||||
@@ -4,6 +4,8 @@ from lib import cpp
|
||||
from lib.make import *
|
||||
|
||||
version("0.3.3")
|
||||
description("small implementation of gettext and libintl")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_url(
|
||||
"https://github.com/sabotage-linux/gettext-tiny/releases/download/v0.3.3/gettext-tiny-0.3.3.tar.xz"
|
||||
)
|
||||
|
||||
@@ -1,15 +1,21 @@
|
||||
import subprocess
|
||||
|
||||
from lib import arch, cpp
|
||||
from lib.make import *
|
||||
|
||||
version("2.55.0")
|
||||
description("a free and open source distributed version control system")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_url("https://www.kernel.org/pub/software/scm/git/git-2.55.0.tar.gz")
|
||||
|
||||
builddep("shortcut/c")
|
||||
builddep("shortcut/autotools")
|
||||
builddep("rust")
|
||||
builddep("cargo")
|
||||
builddep(f"libintl-dev @{arch.get_target()}")
|
||||
builddep(f"libz-dev @{arch.get_target()}")
|
||||
builddep(f"aws-lc-dev @{arch.get_target()}")
|
||||
builddep(f"linux-dev @{arch.get_target()}")
|
||||
builddep("gettext")
|
||||
builddep("libarchive-tools")
|
||||
|
||||
|
||||
def build():
|
||||
|
||||
@@ -7,6 +7,8 @@ from lib import cpp
|
||||
upstream_version = "2.89.2"
|
||||
|
||||
version(upstream_version)
|
||||
description("a general-purpose, portable utility library")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_url("https://download.gnome.org/sources/glib/2.89/glib-2.89.2.tar.xz")
|
||||
|
||||
builddep("shortcut/c++")
|
||||
|
||||
@@ -4,6 +4,8 @@ from lib import cpp, arch
|
||||
from lib.make import *
|
||||
|
||||
version("1.4.21")
|
||||
description("an implementation of the traditional Unix macro processor")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_url("https://ftp.gnu.org/gnu/m4/m4-1.4.21.tar.xz")
|
||||
|
||||
builddep("shortcut/c")
|
||||
|
||||
@@ -2,6 +2,8 @@ import lib.cpp as cpp
|
||||
from lib.make import *
|
||||
|
||||
version("4.4.1")
|
||||
description("a tool which controls the generation of executables and other non-source files of a program from the program's source files")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_url("https://ftp.gnu.org/gnu/make/make-4.4.1.tar.gz")
|
||||
|
||||
builddep("shortcut/c")
|
||||
|
||||
@@ -4,6 +4,8 @@ from lib import cpp
|
||||
from lib.make import *
|
||||
|
||||
version("4.10")
|
||||
description("a non-interactive command-line text editor")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_url("https://ftp.gnu.org/gnu/sed/sed-4.10.tar.gz")
|
||||
|
||||
block_hook("autolink")
|
||||
|
||||
@@ -3,6 +3,8 @@ import subprocess
|
||||
from lib.make import *
|
||||
|
||||
version("15.1.2")
|
||||
description("SemiOS file pattern searcher")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_url("https://gitea.semilabs.org/semios/grep/archive/v15.1.2.tar.gz")
|
||||
|
||||
builddep("shortcut/c")
|
||||
|
||||
@@ -0,0 +1,30 @@
|
||||
from lib.make import *
|
||||
from lib import cpp
|
||||
|
||||
|
||||
version("3.5.2")
|
||||
description("an interactive process viewer")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_url("https://github.com/htop-dev/htop/releases/download/3.5.2/htop-3.5.2.tar.xz")
|
||||
|
||||
builddep("shortcut/autotools")
|
||||
builddep("shortcut/c")
|
||||
builddep(f"libncurses-dev @{arch.get_target()}")
|
||||
builddep(f"linux-dev @{arch.get_target()}")
|
||||
|
||||
|
||||
def build():
|
||||
cpp.configure([
|
||||
f"--prefix={get_prefix('htop')}",
|
||||
"--enable-unicode",
|
||||
])
|
||||
cpp.make()
|
||||
cpp.make_install()
|
||||
|
||||
on_build(build)
|
||||
|
||||
|
||||
package("htop")
|
||||
dep("libncurses @same-arch")
|
||||
dep("semi-libc @same-arch")
|
||||
cpp.use_auto_pack(["bin"])
|
||||
@@ -4,6 +4,8 @@ from lib import cpp
|
||||
from lib.make import *
|
||||
|
||||
version("2026.4.22")
|
||||
description("code and data that represent the history of local time for many representative locations worldwide")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_url("https://data.iana.org/time-zones/releases/tzdb-2026b.tar.lz")
|
||||
|
||||
builddep("shortcut/c")
|
||||
|
||||
@@ -4,6 +4,8 @@ from lib import cpp
|
||||
from lib.make import *
|
||||
|
||||
version("78.3")
|
||||
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"
|
||||
)
|
||||
|
||||
@@ -5,6 +5,8 @@ from lib import cpp
|
||||
from lib.make import *
|
||||
|
||||
version("7.1.0")
|
||||
description("a collection of userspace utilities for controlling and monitoring various aspects of networking in the Linux kernel")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_git("https://git.kernel.org/pub/scm/network/iproute2/iproute2.git", "v7.1.0")
|
||||
|
||||
builddep("shortcut/c")
|
||||
|
||||
@@ -1,17 +1,32 @@
|
||||
import os
|
||||
|
||||
import lib.cpp as cpp
|
||||
from lib import cpp, arch
|
||||
from lib.make import *
|
||||
|
||||
version("1.34")
|
||||
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_url("https://github.com/kmod-project/kmod/archive/refs/tags/v34.tar.gz")
|
||||
|
||||
builddep("shortcut/c")
|
||||
builddep("shortcut/meson")
|
||||
builddep(f"linux-dev @{arch.get_target()}")
|
||||
builddep(f"libzstd-dev @{arch.get_target()}")
|
||||
builddep(f"aws-lc-dev @{arch.get_target()}")
|
||||
builddep(f"liblzma-dev @{arch.get_target()}")
|
||||
builddep(f"libz-ng-dev @{arch.get_target()}")
|
||||
builddep("pkgconf")
|
||||
|
||||
|
||||
def build():
|
||||
cpp.meson_setup()
|
||||
cpp.meson_setup([
|
||||
"-Dprefix=/",
|
||||
f"-Ddistconfdir={get_prefix('libkmod')}/share",
|
||||
"-Dmoduledir=/lib/lkm",
|
||||
"-Dtools=true",
|
||||
"-Ddlopen=all",
|
||||
"-Dmanpages=false",
|
||||
])
|
||||
cpp.meson_compile()
|
||||
cpp.meson_install()
|
||||
os.chdir("usr")
|
||||
|
||||
|
||||
on_build(build)
|
||||
@@ -19,12 +34,20 @@ on_build(build)
|
||||
package("libkmod")
|
||||
cpp.use_auto_pack(["lib"])
|
||||
dep("semi-libc @same-arch")
|
||||
dep("libzstd @same-arch")
|
||||
dep("libcrypto @same-arch")
|
||||
recommend("libzstd @same-arch")
|
||||
recommend("libz @same-arch")
|
||||
recommend("liblzma @same-arch")
|
||||
|
||||
package("kmod")
|
||||
cpp.use_auto_pack(["bin"])
|
||||
dep("libkmod (same)")
|
||||
link("bin/kmod", "/bin/depmod")
|
||||
link("bin/kmod", "/bin/insmod")
|
||||
link("bin/kmod", "/bin/lsmod")
|
||||
link("bin/kmod", "/bin/modinfo")
|
||||
link("bin/kmod", "/bin/modprobe")
|
||||
link("bin/kmod", "/bin/rmmod")
|
||||
|
||||
package("libkmod-dev")
|
||||
cpp.use_auto_pack(["dev"])
|
||||
|
||||
@@ -6,6 +6,8 @@ builddep("shortcut/autotools")
|
||||
builddep(f"libncurses-dev @{arch.get_target()}")
|
||||
|
||||
version("704")
|
||||
description("a free, open-source file pager")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_url("https://www.greenwoodsoftware.com/less/less-704.tar.gz")
|
||||
|
||||
|
||||
|
||||
@@ -1,9 +1,11 @@
|
||||
import lib.cpp as cpp
|
||||
from lib.make import *
|
||||
|
||||
version("3.8.7")
|
||||
version("3.8.9")
|
||||
description("Multi-format archive and compression library")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_url(
|
||||
"https://github.com/libarchive/libarchive/releases/download/v3.8.7/libarchive-3.8.7.tar.gz"
|
||||
"https://github.com/libarchive/libarchive/releases/download/v3.8.9/libarchive-3.8.9.tar.gz"
|
||||
)
|
||||
|
||||
builddep("shortcut/c")
|
||||
|
||||
@@ -1,9 +1,11 @@
|
||||
from lib import arch, cpp
|
||||
from lib.make import *
|
||||
|
||||
version("3.6.0")
|
||||
version("3.7.1")
|
||||
description("A portable foreign-function interface library")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_url(
|
||||
"https://github.com/libffi/libffi/releases/download/v3.6.0/libffi-3.6.0.tar.gz"
|
||||
"https://github.com/libffi/libffi/releases/download/v3.7.1/libffi-3.7.1.tar.gz"
|
||||
)
|
||||
|
||||
builddep("shortcut/c")
|
||||
|
||||
@@ -5,6 +5,8 @@ from lib import arch
|
||||
from lib.make import *
|
||||
|
||||
version("0.2.0")
|
||||
description("provides compatibility objects to gcc runtime libraries")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_url("https://gitea.semilabs.org/semios/libgcc-compat/archive/v0.2.0.tar.gz")
|
||||
|
||||
builddep("shortcut/c")
|
||||
|
||||
@@ -2,6 +2,8 @@ from lib import cpp
|
||||
from lib.make import *
|
||||
|
||||
version("1.6.1")
|
||||
description("a totally open, royalty-free, highly versatile audio codec")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_url("https://downloads.xiph.org/releases/opus/opus-1.6.1.tar.gz")
|
||||
|
||||
builddep("shortcut/c")
|
||||
|
||||
@@ -1,9 +1,11 @@
|
||||
from lib import cpp, arch
|
||||
from lib.make import *
|
||||
|
||||
version("0.22.0")
|
||||
version("0.23.1")
|
||||
description("C library for the Public Suffix List")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_url(
|
||||
"https://github.com/rockdaboot/libpsl/releases/download/0.22.0/libpsl-0.22.0.tar.gz"
|
||||
"https://github.com/rockdaboot/libpsl/releases/download/0.23.1/libpsl-0.23.1.tar.gz"
|
||||
)
|
||||
|
||||
builddep("shortcut/c")
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
from lib.make import *
|
||||
|
||||
version("2.0")
|
||||
description("A small self-contained alternative to readline and libedit")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_url("https://github.com/antirez/linenoise/archive/refs/tags/2.0.tar.gz")
|
||||
|
||||
on_build(lambda: None)
|
||||
|
||||
@@ -5,9 +5,11 @@ import lib.arch as arch
|
||||
import lib.cpp as cpp
|
||||
from lib.make import *
|
||||
|
||||
upstream_version = "6.18.38"
|
||||
upstream_version = "6.18.43"
|
||||
|
||||
version(f"{upstream_version}")
|
||||
description("the Linux operating system kernel")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_url(
|
||||
f"https://cdn.kernel.org/pub/linux/kernel/v6.x/linux-{upstream_version}.tar.xz"
|
||||
)
|
||||
|
||||
@@ -11,6 +11,8 @@ pkgver = "22.1.8"
|
||||
[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_url(f"https://github.com/llvm/llvm-project/releases/download/llvmorg-{pkgver}/llvm-project-{pkgver}.src.tar.xz")
|
||||
|
||||
builddep("shortcut/c++")
|
||||
@@ -130,6 +132,7 @@ def build_clang():
|
||||
"-DCLANG_DEFAULT_CXX_STDLIB=libc++",
|
||||
"-DCLANG_DEFAULT_RTLIB=compiler-rt",
|
||||
"-DLLVM_INCLUDE_TESTS=OFF",
|
||||
f"-DC_INCLUDE_DIRS=/lib/{arch.get_target()}/include",
|
||||
]
|
||||
cmake("clang", import_llvm() + options)
|
||||
|
||||
@@ -143,7 +146,7 @@ def build_polly():
|
||||
cmake("polly", import_llvm())
|
||||
|
||||
def build_runtimes():
|
||||
cflags = f"-isystem /lib/{arch.get_target()}/include -L/lib/{arch.get_target()} -B/lib/{arch.get_target()} -rtlib=compiler-rt"
|
||||
os.makedirs("../_build_runtimes", exist_ok=True)
|
||||
shutil.rmtree("../_build_runtimes")
|
||||
options = [
|
||||
# Configure runtimes
|
||||
@@ -187,6 +190,7 @@ dep("semi-libc @same-arch")
|
||||
dep("libunwind @same-arch")
|
||||
dep("libcxx @same-arch")
|
||||
dep("libcxxabi @same-arch")
|
||||
dep("libffi @same-arch")
|
||||
on_pack(lambda composer: auto_pack_glob(composer, ["lib/*.so*"]))
|
||||
|
||||
package("libllvm-dev")
|
||||
@@ -249,7 +253,7 @@ def pack_clang(composer):
|
||||
lrtlib = rtlib.replace(f"-{larch}", "")
|
||||
composer.addfile(f"{linuxrtdir}/{rtlib}", f"{localrtdir}/{lrtlib}")
|
||||
|
||||
# Add symlink to system directories
|
||||
# Add symlink to system directories, which is required for finding libc++
|
||||
os.symlink(f"/lib/{arch.get_target()}/include", f"{composer.workdir}/bundle/include")
|
||||
|
||||
# Add configuration
|
||||
@@ -263,6 +267,8 @@ def pack_clang(composer):
|
||||
package("clang")
|
||||
dep("libclang (same)")
|
||||
on_pack(pack_clang)
|
||||
link("bin/clang", "/bin/cc")
|
||||
link("bin/clang++", "/bin/c++")
|
||||
|
||||
|
||||
enter_install("lld")
|
||||
|
||||
@@ -5,6 +5,8 @@ from lib import arch, cpp
|
||||
from lib.make import *
|
||||
|
||||
version("1.14.6")
|
||||
description("a suite of tools compiling mdoc, the roff macro language, and man")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_url("https://mandoc.bsd.lv/snapshots/mandoc-1.14.6.tar.gz")
|
||||
|
||||
builddep("shortcut/c")
|
||||
@@ -21,4 +23,5 @@ def build():
|
||||
on_build(build)
|
||||
|
||||
package("mandoc")
|
||||
dep("libz @same-arch")
|
||||
cpp.use_auto_pack(["bin"])
|
||||
|
||||
@@ -3,6 +3,8 @@ import subprocess
|
||||
from lib.make import *
|
||||
|
||||
version("1.11.2")
|
||||
description("The Meson Build System")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_url("https://github.com/mesonbuild/meson/releases/download/1.11.2/meson-1.11.2.tar.gz")
|
||||
|
||||
builddep("python")
|
||||
|
||||
@@ -3,6 +3,8 @@ import subprocess
|
||||
from lib.make import *
|
||||
|
||||
version("1.59.2")
|
||||
description("the MirBSD Korn Shell, a minimal and useful implementation of the POSIX shell with extensions")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_url(
|
||||
"https://github.com/mirabilos/mksh-cvs2git/archive/refs/tags/mksh-R59c.tar.gz"
|
||||
)
|
||||
|
||||
@@ -4,6 +4,8 @@ from lib import cpp
|
||||
from lib.make import *
|
||||
|
||||
version("6.6")
|
||||
description("the ncurses terminal library")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_url("https://invisible-island.net/archives/ncurses/ncurses-6.6.tar.gz")
|
||||
|
||||
builddep("shortcut/c")
|
||||
|
||||
@@ -4,6 +4,8 @@ from lib import cpp
|
||||
from lib.make import *
|
||||
|
||||
version("19")
|
||||
description("A vi/ex editor for editing UTF-8 text")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_url("https://github.com/aligrudi/neatvi/archive/refs/tags/19.tar.gz")
|
||||
|
||||
builddep("shortcut/c")
|
||||
|
||||
@@ -5,6 +5,8 @@ from lib import cpp
|
||||
from lib.make import *
|
||||
|
||||
version("5.3")
|
||||
description("A small vi/ex terminal text editor (neatvi rewrite)")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_url("https://github.com/kyx0r/nextvi/archive/refs/tags/5.3.tar.gz")
|
||||
|
||||
builddep("shortcut/c")
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import os
|
||||
|
||||
from lib import cpp
|
||||
from lib.make import *
|
||||
|
||||
version("1.69.0")
|
||||
version("1.70.0")
|
||||
description("nghttp2 - HTTP/2 C Library and tools")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_url(
|
||||
"https://github.com/nghttp2/nghttp2/releases/download/v1.69.0/nghttp2-1.69.0.tar.gz"
|
||||
"https://github.com/nghttp2/nghttp2/releases/download/v1.70.0/nghttp2-1.70.0.tar.gz"
|
||||
)
|
||||
|
||||
|
||||
|
||||
@@ -3,6 +3,8 @@ import os
|
||||
from lib.make import *
|
||||
|
||||
version("1.13.2")
|
||||
description("a small build system with a focus on speed")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_url("https://github.com/ninja-build/ninja/archive/refs/tags/v1.13.2.tar.gz")
|
||||
|
||||
builddep("shortcut/c++")
|
||||
|
||||
@@ -2,6 +2,8 @@ from lib import cpp
|
||||
from lib.make import *
|
||||
|
||||
version("10.3.1")
|
||||
description("the premier connectivity tool for remote login with the SSH protocol")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_url("https://cdn.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-10.3p1.tar.gz")
|
||||
|
||||
builddep("shortcut/c")
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
from lib import rust
|
||||
from lib.make import *
|
||||
|
||||
version("0.0.1-alpha.1")
|
||||
description("SemiOS package manager")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_url("https://gitea.semilabs.org/semios/packie/archive/0.1.0.alpha-1.tar.gz")
|
||||
|
||||
|
||||
def build():
|
||||
rust.build(["--package", "packie-cli"])
|
||||
|
||||
|
||||
on_build(build)
|
||||
|
||||
package("packie")
|
||||
dep("semi-libc @same-arch")
|
||||
rust.use_auto_pack(["bin"])
|
||||
@@ -4,6 +4,8 @@ import subprocess
|
||||
from lib.make import *
|
||||
|
||||
version("15.1.1")
|
||||
description("the SemiOS fork of the UNIX patch utility")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_url("https://gitea.semilabs.org/semios/patch/archive/v15.1.1.tar.gz")
|
||||
|
||||
builddep("shortcut/c")
|
||||
|
||||
@@ -2,6 +2,8 @@ from lib import cpp
|
||||
from lib.make import *
|
||||
|
||||
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.47/pcre2-10.47.tar.gz"
|
||||
)
|
||||
|
||||
@@ -7,6 +7,8 @@ from lib.make import *
|
||||
upstream_version = "5.42.2"
|
||||
|
||||
version(upstream_version)
|
||||
description("Perl is a highly capable, feature-rich programming language with over 37 years of development")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_url("https://www.cpan.org/src/5.0/perl-5.42.2.tar.gz")
|
||||
|
||||
builddep("shortcut/c")
|
||||
|
||||
@@ -3,6 +3,7 @@ from lib import arch
|
||||
from lib.make import *
|
||||
|
||||
version("2.5.1")
|
||||
description("package compiler and linker metadata toolkit")
|
||||
source_url("https://distfiles.ariadne.space/pkgconf/pkgconf-2.5.1.tar.gz")
|
||||
|
||||
builddep("shortcut/c")
|
||||
|
||||
@@ -5,11 +5,13 @@ from lib import arch, cpp
|
||||
from lib.make import *
|
||||
|
||||
VERSION_BASE = "3.14"
|
||||
VERSION_APPEND = "6"
|
||||
VERSION_APPEND = "7"
|
||||
|
||||
VERSION_FULL = f"{VERSION_BASE}.{VERSION_APPEND}"
|
||||
|
||||
version(VERSION_FULL)
|
||||
description("the Python programming language")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_url(
|
||||
f"https://www.python.org/ftp/python/{VERSION_FULL}/Python-{VERSION_FULL}.tar.xz"
|
||||
)
|
||||
|
||||
@@ -6,6 +6,8 @@ import os
|
||||
upstream_version = "1.4.6"
|
||||
|
||||
version(upstream_version)
|
||||
description("Great utility for computing hash sums")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_url("https://github.com/rhash/RHash/archive/refs/tags/v1.4.6.tar.gz")
|
||||
|
||||
builddep("shortcut/c")
|
||||
|
||||
@@ -1,8 +1,10 @@
|
||||
from lib import rust
|
||||
from lib.make import *
|
||||
|
||||
version("15.1.0")
|
||||
source_url("https://github.com/BurntSushi/ripgrep/archive/refs/tags/15.1.0.tar.gz")
|
||||
version("15.2.0")
|
||||
description("ripgrep recursively searches directories for a regex pattern while respecting your gitignore")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_url("https://github.com/BurntSushi/ripgrep/archive/refs/tags/15.2.0.tar.gz")
|
||||
|
||||
builddep("shortcut/rust")
|
||||
|
||||
|
||||
@@ -3,6 +3,8 @@ import subprocess
|
||||
from lib.make import *
|
||||
|
||||
version("15.1.1")
|
||||
description("SemiOS fork of the UNIX sed utility")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_url("https://gitea.semilabs.org/semios/sed/archive/v15.1.1.tar.gz")
|
||||
|
||||
builddep("shortcut/c")
|
||||
|
||||
@@ -2,6 +2,8 @@ from lib import arch, cpp
|
||||
from lib.make import *
|
||||
|
||||
version("1.2.6+1")
|
||||
description("the SemiOS fork of musl-libc, providing POSIX C standard library and system runtime")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_url("https://gitea.semilabs.org/semios/semi-libc/archive/v1.2.6-1.tar.gz")
|
||||
|
||||
|
||||
|
||||
Binary file not shown.
@@ -0,0 +1,46 @@
|
||||
import os
|
||||
|
||||
from lib.make import *
|
||||
from lib import arch
|
||||
|
||||
def deplinux(s):
|
||||
if "linux" in arch.get_target():
|
||||
dep(s)
|
||||
|
||||
version("1.0.0")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_url(f"file://{os.getcwd()}/empty.tar")
|
||||
|
||||
on_build(lambda: print("Building virtual package `semios-assembly`..."))
|
||||
|
||||
package("SemiOS.Assembly.CoreRuntime")
|
||||
description("Assembly of the core SemiOS runtime")
|
||||
deplinux("semi-libc @same-arch")
|
||||
deplinux("libgcc-compat @same-arch")
|
||||
dep("libunwind @same-arch")
|
||||
dep("mksh @same-arch")
|
||||
dep("coreutils @same-arch")
|
||||
dep("findutils @same-arch")
|
||||
dep("diffutils @same-arch")
|
||||
dep("grep @same-arch")
|
||||
dep("packie @same-arch")
|
||||
dep("iana-timezone-db")
|
||||
on_pack(lambda _: print("Packing virtual package `SemiOS.Assembly.CoreRuntime`..."))
|
||||
|
||||
package("SemiOS.Assembly.Cli")
|
||||
description("Assembly of core SemiOS command-line experience")
|
||||
dep("less @same-arch")
|
||||
dep("ncurses-tools @same-arch")
|
||||
dep("ncurses-terminfo")
|
||||
dep("mandoc @same-arch")
|
||||
dep("neatvi @same-arch")
|
||||
on_pack(lambda _: print("Packing virtual package `SemiOS.Assembly.Cli`..."))
|
||||
|
||||
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")
|
||||
deplinux("iproute2 @same-arch")
|
||||
on_pack(lambda _: print("Packing virtual package `SemiOS.Assembly.Networking`..."))
|
||||
@@ -3,8 +3,10 @@ import os
|
||||
import lib.cpp as cpp
|
||||
from lib.make import *
|
||||
|
||||
version("3.53.2")
|
||||
source_url("https://sqlite.org/2026/sqlite-autoconf-3530200.tar.gz")
|
||||
version("3.53.4")
|
||||
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")
|
||||
|
||||
builddep("shortcut/autotools")
|
||||
builddep("shortcut/c")
|
||||
|
||||
@@ -0,0 +1,325 @@
|
||||
import os
|
||||
|
||||
from lib.make import *
|
||||
from lib import cpp
|
||||
|
||||
builddep("shortcut/c")
|
||||
builddep("shortcut/autotools")
|
||||
builddep("gettext")
|
||||
builddep("bash")
|
||||
builddep(f"linux-dev @{arch.get_target()}")
|
||||
builddep(f"libintl-dev @{arch.get_target()}")
|
||||
builddep(f"libz-ng-dev @{arch.get_target()}")
|
||||
builddep(f"libncurses-dev @{arch.get_target()}")
|
||||
|
||||
version("2.42.2")
|
||||
description("a random collection of Linux utilities")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_url("https://www.kernel.org/pub/linux/utils/util-linux/v2.42/util-linux-2.42.2.tar.xz")
|
||||
|
||||
def build():
|
||||
cpp.configure([
|
||||
"--prefix=/",
|
||||
"--enable-fs-paths-default=/bin",
|
||||
"--disable-su",
|
||||
"--disable-sulogin",
|
||||
"--disable-chfn-chsh",
|
||||
"--disable-login",
|
||||
"--without-systemd",
|
||||
"--disable-makeinstall-setuid",
|
||||
"--disable-makeinstall-chown",
|
||||
"--disable-makeinstall-tty-setgid",
|
||||
])
|
||||
cpp.make()
|
||||
cpp.make_install()
|
||||
|
||||
on_build(build)
|
||||
|
||||
|
||||
def fix_pc(libname: str):
|
||||
pkgname_lib = f"lib{libname}"
|
||||
pkgname_dev = f"lib{libname}-dev"
|
||||
pc_path = f"lib/pkgconfig/{libname}.pc"
|
||||
with open(pc_path, "r") as file:
|
||||
pc_content = file.read()
|
||||
pc_content = pc_content.replace(
|
||||
"libdir=//lib", f"libdir={get_prefix(pkgname_lib)}/lib"
|
||||
).replace(
|
||||
"includedir=//include", f"includedir={get_prefix(pkgname_dev)}/include"
|
||||
)
|
||||
with open(pc_path, "wt") as file:
|
||||
file.write(pc_content)
|
||||
|
||||
|
||||
def pack_lib(composer, name):
|
||||
composer.makedir("lib")
|
||||
for i in os.listdir("lib"):
|
||||
if name in i and "so" in i:
|
||||
composer.addfile(f"lib/{i}", f"lib/{i}")
|
||||
|
||||
def pack_dev(composer, name):
|
||||
fix_pc(name)
|
||||
composer.makedir("lib")
|
||||
for i in os.listdir("lib"):
|
||||
if name in i and "so" not in i:
|
||||
composer.addfile(f"lib/{i}", f"lib/{i}")
|
||||
composer.makedir("lib/pkgconfig")
|
||||
composer.addfile(f"lib/pkgconfig/{name}.pc", f"lib/pkgconfig/{name}.pc")
|
||||
composer.makedir("include")
|
||||
for i in os.listdir("include"):
|
||||
if name in i:
|
||||
composer.add_dir(f"include/{i}", f"include/{i}")
|
||||
|
||||
def pack_bin(composer, list):
|
||||
composer.makedir("bin")
|
||||
for i in list:
|
||||
if i.startswith("sbin/"):
|
||||
i = i.replace("sbin/", "")
|
||||
composer.addfile(f"sbin/{i}", f"bin/{i}")
|
||||
else:
|
||||
composer.addfile(f"bin/{i}", f"bin/{i}")
|
||||
|
||||
package("libblkid")
|
||||
dep("semi-libc @same-arch")
|
||||
on_pack(lambda composer: pack_lib(composer, "blkid"))
|
||||
|
||||
package("libblkid-dev")
|
||||
dep("libblkid (same)")
|
||||
on_pack(lambda composer: pack_dev(composer, "blkid"))
|
||||
|
||||
package("libfdisk")
|
||||
dep("libuuid (same)")
|
||||
dep("libblkid (same)")
|
||||
on_pack(lambda composer: pack_lib(composer, "fdisk"))
|
||||
|
||||
package("libfdisk-dev")
|
||||
dep("libfdisk (same)")
|
||||
on_pack(lambda composer: pack_dev(composer, "fdisk"))
|
||||
|
||||
package("libmount")
|
||||
dep("libblkid (same)")
|
||||
on_pack(lambda composer: pack_lib(composer, "mount"))
|
||||
|
||||
package("libmount-dev")
|
||||
dep("libmount (same)")
|
||||
on_pack(lambda composer: pack_dev(composer, "mount"))
|
||||
|
||||
package("libsmartcols")
|
||||
dep("semi-libc @same-arch")
|
||||
on_pack(lambda composer: pack_lib(composer, "smartcols"))
|
||||
|
||||
package("libsmartcols-dev")
|
||||
dep("libsmartcols (same)")
|
||||
on_pack(lambda composer: pack_dev(composer, "smartcols"))
|
||||
|
||||
package("libuuid")
|
||||
dep("semi-libc @same-arch")
|
||||
on_pack(lambda composer: pack_lib(composer, "uuid"))
|
||||
|
||||
package("libuuid-dev")
|
||||
dep("libuuid (same)")
|
||||
on_pack(lambda composer: pack_dev(composer, "uuid"))
|
||||
|
||||
package("util-linux-swap")
|
||||
dep("libblkid (same)")
|
||||
dep("libmount (same)")
|
||||
dep("libsmartcols (same)")
|
||||
on_pack(lambda composer: pack_bin(composer, ["sbin/swaplabel", "sbin/swapoff", "sbin/swapon", "sbin/mkswap"]))
|
||||
|
||||
package("util-linux-mount")
|
||||
provide("mount")
|
||||
dep("libmount (same)")
|
||||
on_pack(lambda composer: pack_bin(composer, ["mount", "umount"]))
|
||||
|
||||
package("util-linux-fdisk")
|
||||
provide("fdisk")
|
||||
dep("libfdisk (same)")
|
||||
dep("libsmartcols (same)")
|
||||
dep("libncurses @same-arch")
|
||||
on_pack(lambda composer: pack_bin(composer, ["sbin/fdisk"]))
|
||||
|
||||
package("util-linux-sfdisk")
|
||||
provide("sfdisk")
|
||||
dep("libfdisk (same)")
|
||||
dep("libsmartcols (same)")
|
||||
dep("libncurses @same-arch")
|
||||
on_pack(lambda composer: pack_bin(composer, ["sbin/sfdisk"]))
|
||||
|
||||
package("util-linux-cfdisk")
|
||||
provide("cfdisk")
|
||||
dep("libfdisk (same)")
|
||||
dep("libsmartcols (same)")
|
||||
dep("libncurses @same-arch")
|
||||
on_pack(lambda composer: pack_bin(composer, ["sbin/cfdisk"]))
|
||||
|
||||
package("util-linux-mkfs")
|
||||
dep("semi-libc @same-arch")
|
||||
dep("libz @same-arch")
|
||||
provide("mkfs")
|
||||
on_pack(lambda composer: pack_bin(composer, ["sbin/mkfs", "sbin/mkfs.bfs", "sbin/mkfs.cramfs", "sbin/mkfs.minix"]))
|
||||
|
||||
package("util-linux-fsck")
|
||||
dep("libmount (same)")
|
||||
dep("libblkid (same)")
|
||||
dep("libz @same-arch")
|
||||
provide("fsck")
|
||||
on_pack(lambda composer: pack_bin(composer, ["sbin/fsck", "sbin/fsck.cramfs", "sbin/fsck.minix"]))
|
||||
|
||||
package("util-linux-fs")
|
||||
dep("libblkid (same)")
|
||||
dep("libsmartcols (same)")
|
||||
dep("libmount (same)")
|
||||
on_pack(lambda composer: pack_bin(composer, [
|
||||
"sbin/addpart",
|
||||
"sbin/resizepart",
|
||||
"sbin/delpart",
|
||||
"sbin/partx",
|
||||
"sbin/losetup",
|
||||
"sbin/blkdiscard",
|
||||
"sbin/blkid",
|
||||
"sbin/blkpr",
|
||||
"sbin/blkzone",
|
||||
"sbin/blockdev",
|
||||
"sbin/findfs",
|
||||
"sbin/fsfreeze",
|
||||
"sbin/fstrim",
|
||||
"copyfilerange",
|
||||
"exch",
|
||||
"fadvise",
|
||||
"fallocate",
|
||||
"fincore",
|
||||
"flock",
|
||||
"getino",
|
||||
"hardlink",
|
||||
"mountpoint",
|
||||
"namei",
|
||||
"rename",
|
||||
"whereis",
|
||||
"sbin/pivot_root",
|
||||
"sbin/switch_root",
|
||||
"sbin/wipefs",
|
||||
"sbin/zramctl",
|
||||
"findmnt",
|
||||
]))
|
||||
|
||||
package("util-linux-security")
|
||||
dep("libsmartcols (same)")
|
||||
dep("libmount (same)")
|
||||
on_pack(lambda composer: pack_bin(composer, [
|
||||
"utmpdump",
|
||||
"unshare",
|
||||
"last",
|
||||
"lastb",
|
||||
"nsenter",
|
||||
"lsns",
|
||||
"sbin/nologin",
|
||||
]))
|
||||
|
||||
package("util-linux-proc")
|
||||
dep("libsmartcols (same)")
|
||||
dep("semi-libc @same-arch")
|
||||
on_pack(lambda composer: pack_bin(composer, [
|
||||
"uclampset",
|
||||
"waitpid",
|
||||
"setsid",
|
||||
"setpgid",
|
||||
"taskset",
|
||||
"chrt",
|
||||
"coresched",
|
||||
"prlimit",
|
||||
"renice",
|
||||
"ionice",
|
||||
]))
|
||||
|
||||
package("util-linux-text")
|
||||
dep("libncurses @same-arch")
|
||||
dep("libsmartcols (same)")
|
||||
on_pack(lambda composer: pack_bin(composer, [
|
||||
"bits",
|
||||
"cal",
|
||||
"colcrt",
|
||||
"colrm",
|
||||
"column",
|
||||
"getopt",
|
||||
"hexdump",
|
||||
"look",
|
||||
"mcookie",
|
||||
"rev",
|
||||
"ul",
|
||||
]))
|
||||
|
||||
package("util-linux-term")
|
||||
dep("libncurses @same-arch")
|
||||
on_pack(lambda composer: pack_bin(composer, [
|
||||
"setterm",
|
||||
"mesg",
|
||||
"script",
|
||||
"scriptlive",
|
||||
"scriptreplay",
|
||||
"wall",
|
||||
"sbin/agetty",
|
||||
"sbin/ldattach",
|
||||
]))
|
||||
|
||||
package("util-linux-ipc")
|
||||
dep("libmount (same)")
|
||||
dep("libsmartcols (same)")
|
||||
on_pack(lambda composer: pack_bin(composer, [
|
||||
"ipcmk",
|
||||
"ipcrm",
|
||||
"ipcs",
|
||||
"lslocks",
|
||||
"pipesz",
|
||||
"dmesg",
|
||||
]))
|
||||
|
||||
package("util-linux-hardware")
|
||||
dep("libsmartcols (same)")
|
||||
dep("libncurses @same-arch")
|
||||
on_pack(lambda composer: pack_bin(composer, [
|
||||
"irqtop",
|
||||
"lsirq",
|
||||
"lsmem",
|
||||
"wdctl",
|
||||
"sbin/hwclock",
|
||||
"sbin/readprofile",
|
||||
"sbin/rfkill",
|
||||
"sbin/rtcwake",
|
||||
]))
|
||||
|
||||
package("isosize")
|
||||
dep("semi-libc @same-arch")
|
||||
on_pack(lambda composer: pack_bin(composer, ["isosize"]))
|
||||
|
||||
package("util-linux-arch")
|
||||
dep("semi-libc @same-arch")
|
||||
on_pack(lambda composer: pack_bin(composer, ["setarch", "uname26", "linux32", "linux64"]))
|
||||
|
||||
package("util-linux-uuid")
|
||||
dep("libuuid (same)")
|
||||
dep("libsmartcols (same)")
|
||||
on_pack(lambda composer: pack_bin(composer, [
|
||||
"uuidgen",
|
||||
"uuidparse",
|
||||
"sbin/uuidd",
|
||||
]))
|
||||
|
||||
package("util-linux")
|
||||
dep("util-linux-swap (same)")
|
||||
dep("util-linux-mount (same)")
|
||||
dep("util-linux-fdisk (same)")
|
||||
dep("util-linux-sfdisk (same)")
|
||||
dep("util-linux-cfdisk (same)")
|
||||
dep("util-linux-mkfs (same)")
|
||||
dep("util-linux-fsck (same)")
|
||||
dep("util-linux-fs (same)")
|
||||
dep("util-linux-security (same)")
|
||||
dep("util-linux-proc (same)")
|
||||
dep("util-linux-text (same)")
|
||||
dep("util-linux-term (same)")
|
||||
dep("util-linux-ipc (same)")
|
||||
dep("util-linux-hardware (same)")
|
||||
dep("isosize (same)")
|
||||
dep("util-linux-arch (same)")
|
||||
dep("util-linux-uuid (same)")
|
||||
on_pack(lambda _composer: None)
|
||||
@@ -4,6 +4,8 @@ from lib.make import *
|
||||
upstream_version = "9.2.782"
|
||||
|
||||
version(upstream_version)
|
||||
description("vim, a greatly improved version of the good old UNIX editor Vi")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_url("https://github.com/vim/vim/archive/refs/tags/v9.2.0782.tar.gz")
|
||||
|
||||
builddep("shortcut/c")
|
||||
@@ -45,3 +47,4 @@ dep("semi-libc @same-arch")
|
||||
dep("libncurses @same-arch")
|
||||
dep(f"vim-data (={upstream_version}) @any")
|
||||
cpp.use_auto_pack(["bin"])
|
||||
link("bin/vim", "/bin/vi")
|
||||
|
||||
@@ -4,6 +4,8 @@ from lib import cpp
|
||||
from lib.make import *
|
||||
|
||||
version("5.8.3")
|
||||
description("a general-purpose LZMA data-compression library plus command-line tools")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_url(
|
||||
"https://github.com/tukaani-project/xz/releases/download/v5.8.3/xz-5.8.3.tar.gz"
|
||||
)
|
||||
|
||||
@@ -4,6 +4,8 @@ import lib.cpp as cpp
|
||||
from lib.make import *
|
||||
|
||||
version("2.3.3")
|
||||
description("zlib replacement with optimizations for next generation systems")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_url("https://github.com/zlib-ng/zlib-ng/archive/refs/tags/2.3.3.tar.gz")
|
||||
|
||||
builddep("shortcut/c++")
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import os
|
||||
|
||||
import lib.cpp as cpp
|
||||
from lib.make import *
|
||||
|
||||
version("1.5.7")
|
||||
description("Zstandard - Fast real-time compression algorithm")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_url(
|
||||
"https://github.com/facebook/zstd/releases/download/v1.5.7/zstd-1.5.7.tar.gz"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user