feat: add support for configure scripts

Signed-off-by: sisungo <[email protected]>
This commit is contained in:
2026-09-11 07:24:46 +00:00
parent d510d14bc9
commit f2c2fa93c9
5 changed files with 28 additions and 0 deletions
+8
View File
@@ -16,6 +16,7 @@ _key_links = "links"
_key_dependencies = "dependencies"
_key_recommendations = "recommendations"
_key_provides = "provides"
_key_configure = "configure"
_current_pkgname: str = _key_global
_pkginfo: dict[str, dict[str, typing.Any]] = {
@@ -25,6 +26,7 @@ _pkginfo: dict[str, dict[str, typing.Any]] = {
_key_maintainers: [],
_key_provides: [],
_key_recommendations: [],
_key_configure: [],
},
}
_supported_arch: typing.Callable[[str], bool] = lambda x: True
@@ -87,6 +89,12 @@ def provide(s: str):
]
def configure_script(s: str):
_pkginfo[_current_pkgname][_key_configure] += [
os.path.realpath(s)
]
def _translate_dep_spec(s: str) -> str:
return (
s.replace("(same)", "(same-version) @same-arch")