forked from semios/semios-packages
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
cc0a73feff | ||
|
|
d0186dacb5 | ||
|
|
574f8a5996 | ||
|
|
bb3c5b2741 | ||
|
|
e749a4f1f9 | ||
|
|
10ca4e4931 | ||
|
|
e65eee4bf1 | ||
|
|
7797e7674c | ||
|
|
d9b7a01d01 | ||
|
|
232d8c51d6 | ||
|
|
56998f9787 | ||
|
|
510eca1ab6 | ||
|
|
057330e43f | ||
|
|
0ba3f9a31c | ||
|
|
63c3485f5e | ||
|
|
9835791b4c | ||
|
|
204f650c63 | ||
|
|
e9fe74358f | ||
|
|
962c916ae1 | ||
|
|
bffd8e3cdc | ||
|
|
51368da8ff | ||
|
|
f8f18ce917 |
@@ -0,0 +1,33 @@
|
|||||||
|
import os
|
||||||
|
|
||||||
|
from lib import cpp
|
||||||
|
from lib.make import *
|
||||||
|
|
||||||
|
version("2026.4.22")
|
||||||
|
source_url("https://data.iana.org/time-zones/releases/tzdb-2026b.tar.lz")
|
||||||
|
|
||||||
|
|
||||||
|
def build():
|
||||||
|
cpp.make()
|
||||||
|
cpp.make_install()
|
||||||
|
os.chdir("usr")
|
||||||
|
|
||||||
|
|
||||||
|
on_build(build)
|
||||||
|
|
||||||
|
|
||||||
|
def pack_db(composer):
|
||||||
|
composer.makedir("share")
|
||||||
|
composer.add_dir("share/zoneinfo", "share/zoneinfo")
|
||||||
|
|
||||||
|
|
||||||
|
package("iana-timezone-db")
|
||||||
|
arch_any()
|
||||||
|
on_pack(pack_db)
|
||||||
|
|
||||||
|
package("iana-timezone-tools")
|
||||||
|
dep("semi-libc @same-arch")
|
||||||
|
cpp.use_auto_pack(["bin"])
|
||||||
|
|
||||||
|
package("iana-timezone-dev")
|
||||||
|
cpp.use_auto_pack(["dev"])
|
||||||
@@ -19,6 +19,8 @@ on_build(build)
|
|||||||
package("libkmod")
|
package("libkmod")
|
||||||
cpp.use_auto_pack(["lib"])
|
cpp.use_auto_pack(["lib"])
|
||||||
dep("semi-libc @same-arch")
|
dep("semi-libc @same-arch")
|
||||||
|
dep("libzstd @same-arch")
|
||||||
|
dep("libcrypto @same-arch")
|
||||||
|
|
||||||
package("kmod")
|
package("kmod")
|
||||||
cpp.use_auto_pack(["bin"])
|
cpp.use_auto_pack(["bin"])
|
||||||
|
|||||||
@@ -0,0 +1,22 @@
|
|||||||
|
import os
|
||||||
|
import subprocess
|
||||||
|
|
||||||
|
from lib import cpp
|
||||||
|
from lib.make import *
|
||||||
|
|
||||||
|
version("1.14.6")
|
||||||
|
source_url("https://mandoc.bsd.lv/snapshots/mandoc-1.14.6.tar.gz")
|
||||||
|
|
||||||
|
|
||||||
|
def build():
|
||||||
|
cpp.configure()
|
||||||
|
cpp.make([f"CC={os.environ['CC']}"])
|
||||||
|
cpp.make_install()
|
||||||
|
os.chdir("usr/local")
|
||||||
|
subprocess.run(["sh", "-c", "chmod +w bin/* sbin/*"], check=True)
|
||||||
|
|
||||||
|
|
||||||
|
on_build(build)
|
||||||
|
|
||||||
|
package("mandoc")
|
||||||
|
cpp.use_auto_pack(["bin"])
|
||||||
@@ -22,3 +22,4 @@ package("mksh")
|
|||||||
on_pack(pack_mksh)
|
on_pack(pack_mksh)
|
||||||
dep("semi-libc @same-arch")
|
dep("semi-libc @same-arch")
|
||||||
provide("sh")
|
provide("sh")
|
||||||
|
link("bin/mksh", "/bin/sh")
|
||||||
|
|||||||
@@ -0,0 +1,62 @@
|
|||||||
|
import os
|
||||||
|
|
||||||
|
from lib import cpp
|
||||||
|
from lib.make import *
|
||||||
|
|
||||||
|
version("6.6")
|
||||||
|
source_url("https://invisible-island.net/archives/ncurses/ncurses-6.6.tar.gz")
|
||||||
|
|
||||||
|
|
||||||
|
def build():
|
||||||
|
cpp.configure(
|
||||||
|
[
|
||||||
|
"--prefix=/",
|
||||||
|
"--enable-pc-files",
|
||||||
|
"--with-shared",
|
||||||
|
"--with-terminfo-dirs=/share/terminfo",
|
||||||
|
"--enable-symlinks",
|
||||||
|
"--enable-sp-funcs",
|
||||||
|
"--enable-ext-colors",
|
||||||
|
"--enable-rgb-color",
|
||||||
|
"--enable-ext-mouse",
|
||||||
|
"--enable-ext-putwin",
|
||||||
|
"--enable-no-padding",
|
||||||
|
"--enable-sigwinch",
|
||||||
|
"--enable-tcap-names",
|
||||||
|
"--with-pthread",
|
||||||
|
"--enable-pthreads-eintr",
|
||||||
|
"--enable-weak-symbols",
|
||||||
|
"--enable-reentrant",
|
||||||
|
"--without-develop",
|
||||||
|
]
|
||||||
|
)
|
||||||
|
cpp.make()
|
||||||
|
cpp.make_install()
|
||||||
|
os.unlink("lib/terminfo")
|
||||||
|
os.rename("usr/lib/pkgconfig", "lib/pkgconfig")
|
||||||
|
|
||||||
|
|
||||||
|
on_build(build)
|
||||||
|
|
||||||
|
package("libncurses")
|
||||||
|
dep("semi-libc @same-arch")
|
||||||
|
cpp.use_auto_pack(["lib"])
|
||||||
|
|
||||||
|
package("ncurses-tools")
|
||||||
|
dep("libncurses (same)")
|
||||||
|
cpp.use_auto_pack(["bin"])
|
||||||
|
|
||||||
|
package("libncurses-dev")
|
||||||
|
dep("libncurses (same)")
|
||||||
|
cpp.use_auto_pack(["dev"])
|
||||||
|
|
||||||
|
|
||||||
|
def pack_terminfo(composer):
|
||||||
|
composer.makedir("share")
|
||||||
|
composer.add_dir("share/tabset", "share/tabset")
|
||||||
|
composer.add_dir("share/terminfo", "share/terminfo")
|
||||||
|
|
||||||
|
|
||||||
|
package("ncurses-terminfo")
|
||||||
|
arch_any()
|
||||||
|
on_pack(pack_terminfo)
|
||||||
@@ -0,0 +1,55 @@
|
|||||||
|
from lib import cpp
|
||||||
|
from lib.make import *
|
||||||
|
|
||||||
|
version("10.3.1")
|
||||||
|
source_url("https://cdn.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-10.3p1.tar.gz")
|
||||||
|
|
||||||
|
|
||||||
|
def build():
|
||||||
|
cpp.configure(
|
||||||
|
[
|
||||||
|
"--prefix=/",
|
||||||
|
"--sysconfdir=/var/config",
|
||||||
|
"--disable-etc-default-login",
|
||||||
|
"--with-linux-memlock-onfault",
|
||||||
|
"--without-shadow",
|
||||||
|
"--with-pam",
|
||||||
|
"--with-pie",
|
||||||
|
]
|
||||||
|
)
|
||||||
|
cpp.make()
|
||||||
|
cpp.make_install()
|
||||||
|
|
||||||
|
|
||||||
|
on_build(build)
|
||||||
|
|
||||||
|
|
||||||
|
def pack_client(composer):
|
||||||
|
composer.add_dir("bin", "bin")
|
||||||
|
composer.makedir("libexec")
|
||||||
|
composer.addfile("libexec/ssh-sk-helper", "libexec/ssh-sk-helper")
|
||||||
|
composer.addfile("libexec/ssh-pkcs11-helper", "libexec/ssh-pkcs11-helper")
|
||||||
|
|
||||||
|
|
||||||
|
package("openssh-client")
|
||||||
|
dep("semi-libc @same-arch")
|
||||||
|
dep("libcrypto @same-arch")
|
||||||
|
dep("libz @same-arch")
|
||||||
|
on_pack(pack_client)
|
||||||
|
provide("ssh")
|
||||||
|
|
||||||
|
|
||||||
|
def pack_server(composer):
|
||||||
|
composer.makedir("bin")
|
||||||
|
composer.addfile("sbin/sshd", "bin/sshd")
|
||||||
|
composer.makedir("libexec")
|
||||||
|
composer.addfile("libexec/sftp-server", "libexec/sftp-server")
|
||||||
|
composer.addfile("libexec/ssh-keysign", "libexec/ssh-keysign")
|
||||||
|
composer.addfile("libexec/sshd-auth", "libexec/sshd-auth")
|
||||||
|
composer.addfile("libexec/sshd-session", "libexec/sshd-session")
|
||||||
|
|
||||||
|
|
||||||
|
package("openssh-server")
|
||||||
|
dep("openssh-client (same)")
|
||||||
|
dep("libpam @same-arch")
|
||||||
|
on_pack(pack_server)
|
||||||
@@ -0,0 +1,101 @@
|
|||||||
|
import os
|
||||||
|
import shutil
|
||||||
|
import subprocess
|
||||||
|
|
||||||
|
from lib import arch, cpp
|
||||||
|
from lib.make import *
|
||||||
|
|
||||||
|
VERSION_BASE = "3.14"
|
||||||
|
VERSION_APPEND = "6"
|
||||||
|
|
||||||
|
VERSION_FULL = f"{VERSION_BASE}.{VERSION_APPEND}"
|
||||||
|
|
||||||
|
version(VERSION_FULL)
|
||||||
|
source_url(
|
||||||
|
f"https://www.python.org/ftp/python/{VERSION_FULL}/Python-{VERSION_FULL}.tar.xz"
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
def build():
|
||||||
|
cpp.configure(
|
||||||
|
[
|
||||||
|
"--prefix=/",
|
||||||
|
f"--with-platlibdir=lib/{arch.get_target()}",
|
||||||
|
"--enable-shared",
|
||||||
|
"--enable-safety",
|
||||||
|
"--enable-optimizations",
|
||||||
|
"--enable-loadable-sqlite-extensions",
|
||||||
|
"--enable-ipv6",
|
||||||
|
"--with-lto=thin",
|
||||||
|
"--with-tzpath=/share/zoneinfo",
|
||||||
|
"--with-system-expat",
|
||||||
|
"--with-system-libmpdec",
|
||||||
|
"--with-readline=editline",
|
||||||
|
"--with-tail-call-interp",
|
||||||
|
"--without-ensurepip",
|
||||||
|
"--with-ssl-default-suites=openssl",
|
||||||
|
]
|
||||||
|
)
|
||||||
|
cpp.make()
|
||||||
|
try:
|
||||||
|
shutil.rmtree("../cpp_install")
|
||||||
|
except:
|
||||||
|
pass
|
||||||
|
cpp.make_install()
|
||||||
|
os.rename(
|
||||||
|
f"lib/{arch.get_target()}/python{VERSION_BASE}", f"lib/python{VERSION_BASE}"
|
||||||
|
)
|
||||||
|
os.rmdir(f"lib/{arch.get_target()}")
|
||||||
|
|
||||||
|
|
||||||
|
on_build(build)
|
||||||
|
|
||||||
|
|
||||||
|
def python_config_target():
|
||||||
|
return arch.get_target().replace("-semios-linux", "-linux-musl")
|
||||||
|
|
||||||
|
|
||||||
|
def pack_libpython(composer):
|
||||||
|
# Pack the standard library
|
||||||
|
pystdpath = f"{composer.workdir}/bundle/lib/python{VERSION_BASE}"
|
||||||
|
composer.makedir("lib")
|
||||||
|
composer.add_dir(f"lib/python{VERSION_BASE}", f"lib/python{VERSION_BASE}")
|
||||||
|
shutil.rmtree(f"{pystdpath}/test")
|
||||||
|
os.remove(
|
||||||
|
f"{pystdpath}/config-{VERSION_BASE}-{python_config_target()}/libpython{VERSION_BASE}.a"
|
||||||
|
)
|
||||||
|
os.remove(f"{pystdpath}/config-{VERSION_BASE}-{python_config_target()}/python.o")
|
||||||
|
|
||||||
|
# Pack native libraries
|
||||||
|
composer.addfile(
|
||||||
|
f"lib/libpython{VERSION_BASE}.so", f"lib/libpython{VERSION_BASE}.so"
|
||||||
|
)
|
||||||
|
composer.addfile(
|
||||||
|
f"lib/libpython{VERSION_BASE}.so.1.0", f"lib/libpython{VERSION_BASE}.so.1.0"
|
||||||
|
)
|
||||||
|
composer.addfile("lib/libpython3.so", "lib/libpython3.so")
|
||||||
|
|
||||||
|
|
||||||
|
package("libpython")
|
||||||
|
dep("semi-libc @same-arch")
|
||||||
|
on_pack(pack_libpython)
|
||||||
|
|
||||||
|
package("python")
|
||||||
|
dep("libpython (same)")
|
||||||
|
cpp.use_auto_pack(["bin"])
|
||||||
|
link(f"bin/python{VERSION_BASE}", "/bin/python3")
|
||||||
|
link(f"bin/python{VERSION_BASE}", "/bin/python")
|
||||||
|
|
||||||
|
package("libpython-dev")
|
||||||
|
dep("libpython (same)")
|
||||||
|
cpp.use_auto_pack(["dev"])
|
||||||
|
|
||||||
|
|
||||||
|
def pack_test(composer):
|
||||||
|
composer.makedirs(f"lib/python{VERSION_BASE}")
|
||||||
|
composer.add_dir(f"lib/python{VERSION_BASE}/test", f"lib/python{VERSION_BASE}/test")
|
||||||
|
|
||||||
|
|
||||||
|
package("python-test")
|
||||||
|
dep("libpython (same)")
|
||||||
|
on_pack(pack_test)
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
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")
|
||||||
|
|
||||||
|
|
||||||
|
def build():
|
||||||
|
rust.build()
|
||||||
|
|
||||||
|
|
||||||
|
on_build(build)
|
||||||
|
|
||||||
|
package("ripgrep")
|
||||||
|
dep("semi-libc @same-arch")
|
||||||
|
rust.use_auto_pack(["bin"])
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
from lib import rust
|
||||||
|
from lib.make import *
|
||||||
|
|
||||||
|
version("0.1.1")
|
||||||
|
source_url("https://github.com/uutils/sed/releases/download/0.1.1/source.tar.gz")
|
||||||
|
|
||||||
|
|
||||||
|
def build():
|
||||||
|
rust.build()
|
||||||
|
|
||||||
|
|
||||||
|
on_build(build)
|
||||||
|
|
||||||
|
package("sed")
|
||||||
|
dep("semi-libc @same-arch")
|
||||||
|
rust.use_auto_pack(["bin"])
|
||||||
@@ -2,9 +2,9 @@ import lib.arch as arch
|
|||||||
from lib.cpp import *
|
from lib.cpp import *
|
||||||
from lib.make import *
|
from lib.make import *
|
||||||
|
|
||||||
source_url("https://gitea.semilabs.org/semios/semi-libc/archive/v1.2.5.tar.gz")
|
|
||||||
version("1.2.5")
|
|
||||||
|
|
||||||
|
version("1.2.6")
|
||||||
|
source_url("https://gitea.semilabs.org/semios/semi-libc/archive/v1.2.6.tar.gz")
|
||||||
|
|
||||||
def build():
|
def build():
|
||||||
configure(["--prefix=/"])
|
configure(["--prefix=/"])
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ on_build(build)
|
|||||||
|
|
||||||
package("libz-ng")
|
package("libz-ng")
|
||||||
cpp.use_auto_pack(["lib"])
|
cpp.use_auto_pack(["lib"])
|
||||||
provide("libz")
|
provide("libz@same-arch")
|
||||||
dep("semi-libc @same-arch")
|
dep("semi-libc @same-arch")
|
||||||
|
|
||||||
package("zlib-ng-tools")
|
package("zlib-ng-tools")
|
||||||
@@ -28,4 +28,4 @@ dep("libz-ng (same)")
|
|||||||
package("libz-ng-dev")
|
package("libz-ng-dev")
|
||||||
cpp.use_auto_pack(["dev"])
|
cpp.use_auto_pack(["dev"])
|
||||||
dep("libz-ng (same)")
|
dep("libz-ng (same)")
|
||||||
provide("libz-dev")
|
provide("libz-dev@same-arch")
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ source_url(
|
|||||||
|
|
||||||
|
|
||||||
def build():
|
def build():
|
||||||
cpp.make()
|
cpp.make(["HAVE_ZLIB=0", "HAVE_LZMA=0", "HAVE_LZ4=0"])
|
||||||
cpp.make_install()
|
cpp.make_install()
|
||||||
os.chdir("usr/local")
|
os.chdir("usr/local")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user