forked from semios/semios-packages
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4be003698b |
@@ -0,0 +1,44 @@
|
|||||||
|
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 = "5.48"
|
||||||
|
|
||||||
version(VERSION)
|
version(VERSION)
|
||||||
source_git("https://github.com/file/file.git", "FILE5_48")
|
source_url("https://github.com/file/file/archive/refs/tags/FILE5_48.tar.gz")
|
||||||
|
|
||||||
builddep("shortcut/c")
|
builddep("shortcut/c")
|
||||||
builddep("shortcut/autotools")
|
builddep("shortcut/autotools")
|
||||||
@@ -14,6 +14,9 @@ builddep(f"libz-dev @{arch.get_target()}")
|
|||||||
builddep(f"libzstd-dev @{arch.get_target()}")
|
builddep(f"libzstd-dev @{arch.get_target()}")
|
||||||
builddep(f"liblzma-dev @{arch.get_target()}")
|
builddep(f"liblzma-dev @{arch.get_target()}")
|
||||||
builddep(f"libbzip2-dev @{arch.get_target()}")
|
builddep(f"libbzip2-dev @{arch.get_target()}")
|
||||||
|
builddep("autoconf")
|
||||||
|
builddep("automake")
|
||||||
|
builddep("libtool")
|
||||||
|
|
||||||
|
|
||||||
def build():
|
def build():
|
||||||
|
|||||||
Reference in New Issue
Block a user