forked from semios/semios-packages
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4ec417e76e |
@@ -1,44 +0,0 @@
|
||||
import os
|
||||
|
||||
from lib.make import *
|
||||
from lib import cpp
|
||||
|
||||
upstream_version = "1.18"
|
||||
|
||||
version(upstream_version)
|
||||
source_url("https://ftp.gnu.org/gnu/automake/automake-1.18.tar.xz")
|
||||
|
||||
builddep("shortcut/autotools")
|
||||
builddep("perl")
|
||||
builddep("gnu-m4")
|
||||
builddep("autoconf")
|
||||
builddep("libtool")
|
||||
|
||||
|
||||
def build():
|
||||
# Build original source code
|
||||
cpp.configure([f"--prefix={get_prefix('automake')}"])
|
||||
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_automake(composer):
|
||||
composer.add_dir("bin", "bin")
|
||||
composer.makedir("share")
|
||||
composer.add_dir("share/aclocal", "share/aclocal")
|
||||
composer.add_dir(f"share/aclocal-{upstream_version}", f"share/aclocal-{upstream_version}")
|
||||
composer.add_dir(f"share/automake-{upstream_version}", f"share/automake-{upstream_version}")
|
||||
|
||||
package("automake")
|
||||
dep("semi-libc @same-arch")
|
||||
dep("gnu-m4")
|
||||
on_pack(pack_automake)
|
||||
@@ -6,7 +6,7 @@ from lib.make import *
|
||||
VERSION = "5.48"
|
||||
|
||||
version(VERSION)
|
||||
source_url("https://github.com/file/file/archive/refs/tags/FILE5_48.tar.gz")
|
||||
source_git("https://github.com/file/file.git", "FILE5_48")
|
||||
|
||||
builddep("shortcut/c")
|
||||
builddep("shortcut/autotools")
|
||||
@@ -14,9 +14,6 @@ builddep(f"libz-dev @{arch.get_target()}")
|
||||
builddep(f"libzstd-dev @{arch.get_target()}")
|
||||
builddep(f"liblzma-dev @{arch.get_target()}")
|
||||
builddep(f"libbzip2-dev @{arch.get_target()}")
|
||||
builddep("autoconf")
|
||||
builddep("automake")
|
||||
builddep("libtool")
|
||||
|
||||
|
||||
def build():
|
||||
|
||||
@@ -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