forked from semios/semios-packages
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5dac3b19d0 | ||
|
|
65a884ddd4 | ||
|
|
8c41ed811f | ||
|
|
e421add41d | ||
|
|
1b2f8a2295 | ||
|
|
02cf225a7e |
@@ -46,6 +46,8 @@ def builddep(s: str):
|
|||||||
_builddep += ["cargo", "rustc"]
|
_builddep += ["cargo", "rustc"]
|
||||||
elif s == "shortcut/cmake":
|
elif s == "shortcut/cmake":
|
||||||
_builddep += ["cmake", "ninja"]
|
_builddep += ["cmake", "ninja"]
|
||||||
|
elif s == "shortcut/meson":
|
||||||
|
_builddep += ["meson", "ninja"]
|
||||||
else:
|
else:
|
||||||
_builddep += [s]
|
_builddep += [s]
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,44 @@
|
|||||||
|
import os
|
||||||
|
|
||||||
|
from lib import cpp, arch
|
||||||
|
from lib.make import *
|
||||||
|
|
||||||
|
version("0.195")
|
||||||
|
source_url("https://sourceware.org/elfutils/ftp/0.195/elfutils-0.195.tar.bz2")
|
||||||
|
|
||||||
|
builddep("shortcut/c++")
|
||||||
|
builddep("shortcut/autotools")
|
||||||
|
builddep(f"libargp-dev @{arch.get_target()}")
|
||||||
|
builddep("gettext")
|
||||||
|
builddep(f"libintl-dev @{arch.get_target()}")
|
||||||
|
builddep("pkgconf")
|
||||||
|
builddep(f"libz-ng-dev @{arch.get_target()}")
|
||||||
|
builddep(f"libbzip2-dev @{arch.get_target()}")
|
||||||
|
builddep(f"liblzma-dev @{arch.get_target()}")
|
||||||
|
builddep(f"libzstd-dev @{arch.get_target()}")
|
||||||
|
builddep(f"libfts-dev @{arch.get_target()}")
|
||||||
|
builddep(f"libiberty-obstack-dev @{arch.get_target()}")
|
||||||
|
builddep(f"libcurl-dev @{arch.get_target()}")
|
||||||
|
builddep("bzip2")
|
||||||
|
builddep("gnu-m4")
|
||||||
|
builddep(f"linux-dev @{arch.get_target()}")
|
||||||
|
|
||||||
|
|
||||||
|
def build():
|
||||||
|
os.environ["LIBS"] = "-liberty_obstack -largp -lfts"
|
||||||
|
os.environ["ac_cv_search__obstack_free"] = "yes"
|
||||||
|
cpp.configure(
|
||||||
|
[
|
||||||
|
"--prefix=/",
|
||||||
|
"--disable-stacktrace",
|
||||||
|
"--disable-demangler",
|
||||||
|
#"--enable-libdebuginfod",
|
||||||
|
#"--enable-debuginfod",
|
||||||
|
#"--enable-debuginfod-ima-verification",
|
||||||
|
]
|
||||||
|
)
|
||||||
|
cpp.make()
|
||||||
|
cpp.make_install()
|
||||||
|
|
||||||
|
|
||||||
|
on_build(build)
|
||||||
@@ -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)
|
||||||
Reference in New Issue
Block a user