2 Commits
Author SHA256 Message Date
sisungo 79a6853b83 fix: rust auto-pack incorrectly inserts dylib
Signed-off-by: sisungo <[email protected]>
2026-12-03 14:46:03 +00:00
sisungo 58ed58a087 feat: add package mold
Signed-off-by: sisungo <[email protected]>
2026-11-16 11:24:07 +00:00
2 changed files with 25 additions and 1 deletions

No files matched your search

+3 -1
View File
@@ -45,7 +45,9 @@ def _autopack_filter_lib(ent) -> bool:
def _autopack_filter_bin(ent) -> bool:
return os.access(ent.path, os.X_OK) and ent.is_file(follow_symlinks=False)
is_executable_file = os.access(ent.path, os.X_OK) and ent.is_file(follow_symlinks=False)
is_not_dylib = not (ent.path.endswith(".so") or ent.path.endswith(".dll") or ent.path.endswith(".dylib"))
return is_executable_file and is_not_dylib
def _auto_pack(profiles: list[str], pc: pkgcomposer.PkgComposer):
+22
View File
@@ -0,0 +1,22 @@
from lib import rust
from lib.make import *
version("3.0.0")
description("A Modern Linker in Rust")
maintainer("sisungo <[email protected]>")
source_managed("github://rui314/mold#v3.0.0", "rust")
builddep("shortcut/rust")
def build():
rust.build()
on_build(build)
package("mold")
dep("semi-libc @same-arch")
dep("libunwind @same-arch")
rust.use_auto_pack(["bin"])