forked from semios/semios-packages
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b9ee2c92b7 | ||
|
|
89f0038e99 | ||
|
|
7e66f0669d | ||
|
|
6abf94ba6c |
@@ -0,0 +1,39 @@
|
||||
import os
|
||||
|
||||
from lib.make import *
|
||||
from lib import cpp
|
||||
|
||||
version("2.73")
|
||||
source_url("https://ftp.gnu.org/gnu/autoconf/autoconf-2.73.tar.xz")
|
||||
|
||||
builddep("shortcut/autotools")
|
||||
builddep("perl")
|
||||
builddep("gnu-m4")
|
||||
|
||||
|
||||
def build():
|
||||
# Build original source code
|
||||
cpp.configure([f"--prefix={get_prefix('autoconf')}"])
|
||||
cpp.make()
|
||||
cpp.make_install()
|
||||
|
||||
# Patch perl binary path
|
||||
for i in os.listdir("bin"):
|
||||
with open(f"bin/{i}") as file:
|
||||
content = file.read()
|
||||
with open(f"bin/{i}", "wt") as file:
|
||||
file.write(content.replace("/usr/bin/perl", "/bin/perl"))
|
||||
|
||||
on_build(build)
|
||||
|
||||
|
||||
def pack_autoconf(composer):
|
||||
composer.add_dir("bin", "bin")
|
||||
composer.makedir("share")
|
||||
composer.add_dir("share/autoconf", "share/autoconf")
|
||||
|
||||
package("autoconf")
|
||||
dep("gnu-m4")
|
||||
dep("semi-libc @same-arch")
|
||||
dep("perl")
|
||||
on_pack(pack_autoconf)
|
||||
@@ -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