forked from semios/semios-packages
Compare commits
12
Commits
update-pkgs
...
libpsl
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6abf94ba6c | ||
|
|
557aae6cb5 | ||
|
|
178f5820e7 | ||
|
|
aded8393fe | ||
|
|
ea6c4592e9 | ||
|
|
a903430180 | ||
|
|
b3d71e0a3a | ||
|
|
6dd8c911a1 | ||
|
|
5c22c479bd | ||
|
|
6704ec11ea | ||
|
|
8c58073118 | ||
|
|
eea8869aa5 |
+3
-1
@@ -15,12 +15,14 @@ BASE_REQUIREMENTS = [
|
|||||||
"packie",
|
"packie",
|
||||||
"patch",
|
"patch",
|
||||||
"zstd",
|
"zstd",
|
||||||
|
"libz-ng",
|
||||||
|
"liblzma",
|
||||||
|
"libbzip2",
|
||||||
# Basic libraries
|
# Basic libraries
|
||||||
"sqlite",
|
"sqlite",
|
||||||
"libgcc-compat",
|
"libgcc-compat",
|
||||||
"libcxx",
|
"libcxx",
|
||||||
"semi-libc",
|
"semi-libc",
|
||||||
"libz-ng",
|
|
||||||
# Networking
|
# Networking
|
||||||
"ca-certificates",
|
"ca-certificates",
|
||||||
"certutil",
|
"certutil",
|
||||||
|
|||||||
@@ -8,18 +8,26 @@ source_url("https://github.com/aws/aws-lc/archive/refs/tags/v5.1.0.tar.gz")
|
|||||||
|
|
||||||
builddep("shortcut/c")
|
builddep("shortcut/c")
|
||||||
|
|
||||||
|
def _fix_pc(name, prefix):
|
||||||
|
filepath = f"lib/pkgconfig/{name}.pc"
|
||||||
|
with open(filepath, "r") as f:
|
||||||
|
content = f.read()
|
||||||
|
new_content = content.replace("prefix=/", f"prefix={prefix}").replace("libdir=${prefix}/usr/lib", "libdir=${prefix}/lib")
|
||||||
|
with open(filepath, "w") as f:
|
||||||
|
f.write(new_content)
|
||||||
|
|
||||||
def build():
|
def build():
|
||||||
cpp.cmake(
|
cpp.cmake(
|
||||||
[
|
[
|
||||||
"-DBUILD_SHARED_LIBS=1",
|
"-DBUILD_SHARED_LIBS=1",
|
||||||
"-DCMAKE_INSTALL_PREFIX=/",
|
"-DCMAKE_INSTALL_PREFIX=/",
|
||||||
f"-DCMAKE_INSTALL_INCLUDEDIR={get_prefix('aws-lc-dev')}",
|
f"-DCMAKE_INSTALL_INCLUDEDIR={get_prefix('aws-lc-dev')}/include",
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
cpp.ninja()
|
cpp.ninja()
|
||||||
cpp.ninja_install()
|
cpp.ninja_install()
|
||||||
|
_fix_pc("libssl", get_prefix("aws-lc-libssl"))
|
||||||
|
_fix_pc("libcrypto", get_prefix("aws-lc-libcrypto"))
|
||||||
|
|
||||||
on_build(build)
|
on_build(build)
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,36 @@
|
|||||||
|
from lib import cpp
|
||||||
|
from lib.make import *
|
||||||
|
|
||||||
|
version("3.7.91")
|
||||||
|
source_url("https://alpha.gnu.org/gnu/bison/bison-3.7.91.tar.xz")
|
||||||
|
|
||||||
|
builddep("shortcut/c")
|
||||||
|
builddep("shortcut/autotools")
|
||||||
|
builddep("gnu-m4")
|
||||||
|
|
||||||
|
block_hook("autolink")
|
||||||
|
|
||||||
|
|
||||||
|
def build():
|
||||||
|
cpp.configure(["--enable-relocatable"])
|
||||||
|
cpp.make()
|
||||||
|
cpp.make_install()
|
||||||
|
|
||||||
|
|
||||||
|
on_build(build)
|
||||||
|
|
||||||
|
|
||||||
|
def pack_bison(composer):
|
||||||
|
composer.add_dir("bin", "bin")
|
||||||
|
composer.add_dir("lib", "lib")
|
||||||
|
composer.makedir("share")
|
||||||
|
composer.add_dir("share/aclocal", "share/aclocal")
|
||||||
|
composer.add_dir("share/bison", "share/bison")
|
||||||
|
|
||||||
|
|
||||||
|
package("bison")
|
||||||
|
dep("semi-libc @same-arch")
|
||||||
|
dep("gnu-m4")
|
||||||
|
on_pack(pack_bison)
|
||||||
|
link("bin/bison", "/bin/bison")
|
||||||
|
link("bin/yacc", "/bin/yacc", default=False)
|
||||||
@@ -0,0 +1,29 @@
|
|||||||
|
import os
|
||||||
|
|
||||||
|
from lib import cpp, arch
|
||||||
|
from lib.make import *
|
||||||
|
|
||||||
|
version("1.4.21")
|
||||||
|
source_url("https://ftp.gnu.org/gnu/m4/m4-1.4.21.tar.xz")
|
||||||
|
|
||||||
|
builddep("shortcut/c")
|
||||||
|
builddep("shortcut/autotools")
|
||||||
|
builddep(f"linux-dev @{arch.get_target()}")
|
||||||
|
|
||||||
|
|
||||||
|
def build():
|
||||||
|
cpp.configure(
|
||||||
|
[f"--prefix={get_prefix('gnu-m4')}", "--enable-changeword", "--disable-nls"]
|
||||||
|
)
|
||||||
|
cpp.make()
|
||||||
|
cpp.make_install()
|
||||||
|
os.rename("bin/m4", "bin/gnu-m4")
|
||||||
|
|
||||||
|
|
||||||
|
on_build(build)
|
||||||
|
|
||||||
|
package("gnu-m4")
|
||||||
|
provide("m4")
|
||||||
|
dep("semi-libc @same-arch")
|
||||||
|
cpp.use_auto_pack(["bin"])
|
||||||
|
link("bin/gnu-m4", "/bin/m4")
|
||||||
Binary file not shown.
@@ -4,8 +4,8 @@ import subprocess
|
|||||||
from lib import arch
|
from lib import arch
|
||||||
from lib.make import *
|
from lib.make import *
|
||||||
|
|
||||||
version("0.1.0")
|
version("0.2.0")
|
||||||
source_url(f"file://{os.getcwd()}/empty.tar")
|
source_url("https://gitea.semilabs.org/semios/libgcc-compat/archive/v0.2.0.tar.gz")
|
||||||
|
|
||||||
builddep("shortcut/c")
|
builddep("shortcut/c")
|
||||||
builddep(f"libunwind-dev @{arch.get_target()}")
|
builddep(f"libunwind-dev @{arch.get_target()}")
|
||||||
@@ -13,19 +13,7 @@ builddep(f"linux-dev @{arch.get_target()}")
|
|||||||
|
|
||||||
|
|
||||||
def build():
|
def build():
|
||||||
subprocess.run(
|
subprocess.run(["./build.sh"], check=True)
|
||||||
os.environ.get("CC", "cc").split(" ")
|
|
||||||
+ [
|
|
||||||
"-shared",
|
|
||||||
"-o",
|
|
||||||
"libgcc_s.so.1",
|
|
||||||
"-Wl,--no-as-needed",
|
|
||||||
"-lunwind",
|
|
||||||
"-Wl,--no-undefined",
|
|
||||||
"-Wl,-soname,libgcc_s.so.1",
|
|
||||||
],
|
|
||||||
check=True,
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
on_build(build)
|
on_build(build)
|
||||||
@@ -34,6 +22,7 @@ on_build(build)
|
|||||||
def pack(composer):
|
def pack(composer):
|
||||||
composer.makedir("lib")
|
composer.makedir("lib")
|
||||||
composer.addfile("libgcc_s.so.1", "lib/libgcc_s.so.1")
|
composer.addfile("libgcc_s.so.1", "lib/libgcc_s.so.1")
|
||||||
|
composer.addfile("libatomic.so.1", "lib/libatomic.so.1")
|
||||||
|
|
||||||
|
|
||||||
package("libgcc-compat")
|
package("libgcc-compat")
|
||||||
|
|||||||
@@ -0,0 +1,41 @@
|
|||||||
|
from lib import cpp, arch
|
||||||
|
from lib.make import *
|
||||||
|
|
||||||
|
version("0.22.0")
|
||||||
|
source_url(
|
||||||
|
"https://github.com/rockdaboot/libpsl/releases/download/0.22.0/libpsl-0.22.0.tar.gz"
|
||||||
|
)
|
||||||
|
|
||||||
|
builddep("shortcut/c")
|
||||||
|
builddep("shortcut/autotools")
|
||||||
|
builddep(f"libicu4c-dev @{arch.get_target()}")
|
||||||
|
builddep("pkgconf")
|
||||||
|
|
||||||
|
def build():
|
||||||
|
cpp.configure(
|
||||||
|
[
|
||||||
|
"--prefix=/",
|
||||||
|
f"--libdir={get_prefix('libpsl')}/lib",
|
||||||
|
f"--includedir={get_prefix('libpsl-dev')}/include",
|
||||||
|
"--disable-nls",
|
||||||
|
"--enable-runtime=libicu",
|
||||||
|
]
|
||||||
|
)
|
||||||
|
cpp.make()
|
||||||
|
cpp.make_install()
|
||||||
|
|
||||||
|
|
||||||
|
on_build(build)
|
||||||
|
|
||||||
|
package("libpsl")
|
||||||
|
dep("semi-libc @same-arch")
|
||||||
|
dep("libicu4c @same-arch")
|
||||||
|
cpp.use_auto_pack(["lib"])
|
||||||
|
|
||||||
|
package("libpsl-tools")
|
||||||
|
dep("libpsl (same)")
|
||||||
|
cpp.use_auto_pack(["bin"])
|
||||||
|
|
||||||
|
package("libpsl-dev")
|
||||||
|
dep("libpsl (same)")
|
||||||
|
cpp.use_auto_pack(["dev"])
|
||||||
Reference in New Issue
Block a user