aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/rosa/bzip2.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-02-11 23:51:10 +0900
committerOphestra <cat@gensokyo.uk>2026-02-12 01:19:40 +0900
commit1791b604b525cd67f3b6c393a1364688762aa2e0 (patch)
tree84b622364fb5530d97edecb1beccfee9d59ed602 /internal/rosa/bzip2.go
parent59ff6db7ec627bd8237b9508ef78c65204971cfc (diff)
internal/rosa/make: configurable configure and install
This makes the helper useful for non-autotools build systems. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/rosa/bzip2.go')
-rw-r--r--internal/rosa/bzip2.go21
1 files changed, 13 insertions, 8 deletions
diff --git a/internal/rosa/bzip2.go b/internal/rosa/bzip2.go
index e4ba4c82..569d7d8a 100644
--- a/internal/rosa/bzip2.go
+++ b/internal/rosa/bzip2.go
@@ -7,16 +7,21 @@ func (t Toolchain) newBzip2() pkg.Artifact {
version = "1.0.8"
checksum = "cTLykcco7boom-s05H1JVsQi1AtChYL84nXkg_92Dm1Xt94Ob_qlMg_-NSguIK-c"
)
- return t.New("bzip2-"+version, 0, []pkg.Artifact{
- t.Load(Make),
- }, nil, nil, `
-cd /usr/src/bzip2
-make CC=cc
-make PREFIX=/work/system install
-`, pkg.Path(AbsUsrSrc.Append("bzip2"), true, pkg.NewHTTPGetTar(
+ return t.NewViaMake("bzip2", version, pkg.NewHTTPGetTar(
nil, "https://sourceware.org/pub/bzip2/bzip2-"+version+".tar.gz",
mustDecode(checksum),
pkg.TarGzip,
- )))
+ ), &MakeAttr{
+ Writable: true,
+ SkipConfigure: true,
+ SkipCheck: true,
+ InPlace: true,
+
+ ScriptEarly: "cd /usr/src/bzip2",
+ Make: []string{
+ "CC=cc",
+ },
+ ScriptInstall: "make PREFIX=/work/system install",
+ })
}
func init() { artifactsF[Bzip2] = Toolchain.newBzip2 }