forked from semios/semios-packages
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4ccaea0e36 |
@@ -1,48 +0,0 @@
|
||||
from lib.make import *
|
||||
from lib import cpp
|
||||
|
||||
version("2.5.4")
|
||||
source_url("https://ftpmirror.gnu.org/libtool/libtool-2.5.4.tar.gz")
|
||||
|
||||
builddep("shortcut/c")
|
||||
builddep("shortcut/autotools")
|
||||
builddep("gnu-m4")
|
||||
|
||||
|
||||
def build():
|
||||
# Build original source code
|
||||
cpp.configure([f"--prefix={get_prefix('libtool')}"])
|
||||
cpp.make()
|
||||
cpp.make_install()
|
||||
|
||||
# Patch shell binary path
|
||||
with open("bin/libtoolize") as file:
|
||||
content = file.read()
|
||||
with open("bin/libtoolize", "wt") as file:
|
||||
file.write(content.replace("/usr/bin/env", "/bin/env"))
|
||||
|
||||
on_build(build)
|
||||
|
||||
|
||||
def pack_libtool(composer):
|
||||
composer.add_dir("bin")
|
||||
|
||||
package("libltdl")
|
||||
dep("semi-libc @same-arch")
|
||||
cpp.use_auto_pack(["lib"])
|
||||
|
||||
package("libltdl-dev")
|
||||
dep("semi-libc @same-arch")
|
||||
cpp.use_auto_pack(["dev"])
|
||||
|
||||
|
||||
def pack_libtool(composer):
|
||||
composer.add_dir("bin", "bin")
|
||||
composer.makedir("share")
|
||||
composer.add_dir("share/libtool", "share/libtool")
|
||||
|
||||
package("libtool")
|
||||
dep("semi-libc @same-arch")
|
||||
dep("mksh")
|
||||
dep("coreutils")
|
||||
on_pack(pack_libtool)
|
||||
@@ -0,0 +1,46 @@
|
||||
import subprocess
|
||||
|
||||
from lib import cpp, arch
|
||||
from lib.make import *
|
||||
|
||||
version("4.0.6")
|
||||
source_url("https://gitlab.com/procps-ng/procps/-/archive/v4.0.6/procps-v4.0.6.tar.gz")
|
||||
|
||||
builddep("shortcut/c")
|
||||
builddep("shortcut/autotools")
|
||||
builddep("autoconf")
|
||||
builddep("automake")
|
||||
builddep(f"libintl-dev @{arch.get_target()}")
|
||||
builddep("gettext")
|
||||
builddep("libtool")
|
||||
|
||||
|
||||
def build():
|
||||
subprocess.run(["./autogen.sh"], check=True)
|
||||
cpp.configure(
|
||||
[
|
||||
"--prefix=/",
|
||||
"--enable-harden-flags",
|
||||
"--enable-colorwatch",
|
||||
"--enable-watch8bit",
|
||||
"--enable-sigwinch",
|
||||
"--disable-kill",
|
||||
]
|
||||
)
|
||||
cpp.make()
|
||||
cpp.make_install()
|
||||
|
||||
|
||||
on_build(build)
|
||||
|
||||
package("libproc2")
|
||||
dep("semi-libc @same-arch")
|
||||
cpp.use_auto_pack(["lib"])
|
||||
|
||||
package("libproc2-dev")
|
||||
dep("libproc2 (same)")
|
||||
cpp.use_auto_pack(["dev"])
|
||||
|
||||
package("procps-ng")
|
||||
dep("libproc2 (same)")
|
||||
cpp.use_auto_pack(["bin"])
|
||||
Reference in New Issue
Block a user