From eee111823d76fa7f50c2ba72116adef71ed67fa5 Mon Sep 17 00:00:00 2001 From: sisungo Date: Sat, 13 Jun 2026 12:21:58 +0800 Subject: [PATCH] feat: add links to coreutils Signed-off-by: sisungo --- packages/coreutils/pkgbuild.py | 84 ++++++++++++++++++++++++++++++++++ 1 file changed, 84 insertions(+) diff --git a/packages/coreutils/pkgbuild.py b/packages/coreutils/pkgbuild.py index 374bf2b..5435eb0 100644 --- a/packages/coreutils/pkgbuild.py +++ b/packages/coreutils/pkgbuild.py @@ -3,6 +3,7 @@ from lib.make import * version("0.9.0") source_url("https://github.com/uutils/coreutils/archive/refs/tags/0.9.0.tar.gz") +block_hook("autolink") def build(): @@ -11,6 +12,89 @@ def build(): on_build(build) +functions = [ + "[", + "b2sum", + "base32", + "base64", + "basename", + "basenc", + "cat", + "cksum", + "comm", + "cp", + "csplit", + "cut", + "date", + "dd", + "df", + "dir", + "dircolors", + "dirname", + "du", + "echo", + "env", + "expand", + "expr", + "factor", + "false", + "fmt", + "fold", + "head", + "join", + "link", + "ln", + "ls", + "md5sum", + "mkdir", + "mktemp", + "more", + "mv", + "nl", + "numfmt", + "od", + "paste", + "pathchk", + "pr", + "printenv", + "printf", + "ptx", + "pwd", + "readlink", + "realpath", + "rm", + "rmdir", + "seq", + "sha1sum", + "sha224sum", + "sha256sum", + "sha384sum", + "sha512sum", + "shred", + "shuf", + "sleep", + "sort", + "split", + "sum", + "tac", + "tail", + "tee", + "test", + "touch", + "tr", + "true", + "truncate", + "tsort", + "tty", + "unexpand", + "uniq", + "unlink", + "vdir", + "wc", + "yes", +] package("coreutils") +for func in functions: + link(f"bin/{func}", f"/bin/{func}") rust.use_auto_pack(["bin"]) -- 2.55.0