Compare commits

..
1 Commits
Author SHA1 Message Date
sisungo b9ee2c92b7 feat: add package autoconf
Signed-off-by: sisungo <[email protected]>
2026-07-12 09:36:40 +08:00
2 changed files with 10 additions and 18 deletions
@@ -3,21 +3,17 @@ 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")
version("2.73")
source_url("https://ftp.gnu.org/gnu/autoconf/autoconf-2.73.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.configure([f"--prefix={get_prefix('autoconf')}"])
cpp.make()
cpp.make_install()
@@ -31,14 +27,13 @@ def build():
on_build(build)
def pack_automake(composer):
def pack_autoconf(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}")
composer.add_dir("share/autoconf", "share/autoconf")
package("automake")
dep("semi-libc @same-arch")
package("autoconf")
dep("gnu-m4")
on_pack(pack_automake)
dep("semi-libc @same-arch")
dep("perl")
on_pack(pack_autoconf)
+1 -4
View File
@@ -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():