diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-05-20 03:14:11 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-05-20 03:33:15 +0900 |
| commit | ef414ab01a28b61ef01766c3dd28ed2342f5ab75 (patch) | |
| tree | 314a8f471c8c052da0936549ecac2d052f52932a /internal/rosa/libcap.go | |
| parent | 96abf266dd8bbbb4ea65c74a3f84f2461a6021a7 (diff) | |
internal/rosa/package: migrate many libraries
This also adds more string helpers.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/rosa/libcap.go')
| -rw-r--r-- | internal/rosa/libcap.go | 52 |
1 files changed, 0 insertions, 52 deletions
diff --git a/internal/rosa/libcap.go b/internal/rosa/libcap.go deleted file mode 100644 index 5c1a0123..00000000 --- a/internal/rosa/libcap.go +++ /dev/null @@ -1,52 +0,0 @@ -package rosa - -import "hakurei.app/internal/pkg" - -func (t Toolchain) newLibcap() (pkg.Artifact, string) { - const ( - version = "2.78" - checksum = "wFdUkBhFMD9InPnrBZyegWrlPSAg_9JiTBC-eSFyWWlmbzL2qjh2mKxr9Kx2a8ut" - ) - return t.NewPackage("libcap", version, newTar( - "https://git.kernel.org/pub/scm/libs/libcap/libcap.git/"+ - "snapshot/libcap-"+version+".tar.gz", - checksum, - pkg.TarGzip, - ), &PackageAttr{ - // uses source tree as scratch space - Writable: true, - Chmod: true, - - Env: []string{ - "prefix=/system", - "lib=lib", - }, - ScriptEarly: ` -ln -s ../system/bin/bash /bin/ -`, - }, &MakeHelper{ - SkipConfigure: true, - InPlace: true, - - Make: []string{ - "CC=cc", - "all", - }, - Check: []string{ - "CC=cc", - "test", - }, - }, - Bash, - Diffutils, - ), version -} -func init() { - native.mustRegister(Toolchain.newLibcap, &Metadata{ - Name: "libcap", - Description: "a library for getting and setting POSIX.1e draft 15 capabilities", - Website: "https://sites.google.com/site/fullycapable/", - - ID: 1569, - }) -} |
