forked from semios/semios-packages
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4ec417e76e |
@@ -0,0 +1,48 @@
|
|||||||
|
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)
|
||||||
Reference in New Issue
Block a user