Compare commits

..
1 Commits
Author SHA1 Message Date
sisungo 1b2f8a2295 feat: add package meson
Signed-off-by: sisungo <[email protected]>
2026-07-14 15:48:08 +08:00
3 changed files with 31 additions and 48 deletions
-44
View File
@@ -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)
+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():
+30
View File
@@ -0,0 +1,30 @@
import subprocess
from lib.make import *
version("1.11.2")
source_url("https://github.com/mesonbuild/meson/releases/download/1.11.2/meson-1.11.2.tar.gz")
builddep("python")
def build():
subprocess.run([
"python3",
"./packaging/create_zipapp.py",
"--outfile",
"meson",
"--interpreter",
"/bin/python3"
])
on_build(build)
def pack_meson(composer):
composer.makedir("bin")
composer.addfile("meson", "bin/meson")
package("meson")
dep("python @same-arch")
recommend("ninja")
on_pack(pack_meson)