aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/rosa/gnu.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-01-29 17:46:18 +0900
committerOphestra <cat@gensokyo.uk>2026-01-29 17:46:30 +0900
commit2d63ea8feee3ece4a158da0b1cce5fd7ebc87769 (patch)
tree0c165c4eaf95290ba1dd9d8f3a50e647772a1674 /internal/rosa/gnu.go
parentdd4326418c6a0d44751abba9f7a149ec140dca4e (diff)
internal/rosa: gzip artifact
Toybox does not implement this, and it is used by many programs, including toybox itself. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/rosa/gnu.go')
-rw-r--r--internal/rosa/gnu.go23
1 files changed, 23 insertions, 0 deletions
diff --git a/internal/rosa/gnu.go b/internal/rosa/gnu.go
index 0160e636..e4142476 100644
--- a/internal/rosa/gnu.go
+++ b/internal/rosa/gnu.go
@@ -79,6 +79,29 @@ make DESTDIR=/work install
}
func init() { artifactsF[Autoconf] = Toolchain.newAutoconf }
+func (t Toolchain) newGzip() pkg.Artifact {
+ const (
+ version = "1.14"
+ checksum = "NWhjUavnNfTDFkZJyAUonL9aCOak8GVajWX2OMlzpFnuI0ErpBFyj88mz2xSjz0q"
+ )
+ return t.New("gzip-"+version, false, []pkg.Artifact{
+ t.Load(Make),
+ }, nil, nil, `
+cd "$(mktemp -d)"
+/usr/src/gzip/configure \
+ --prefix=/system \
+ --build="${ROSA_TRIPLE}"
+make "-j$(nproc)"
+make DESTDIR=/work install
+`, pkg.Path(AbsUsrSrc.Append("gzip"), false, pkg.NewHTTPGetTar(
+ nil,
+ "https://ftp.gnu.org/gnu/gzip/gzip-"+version+".tar.gz",
+ mustDecode(checksum),
+ pkg.TarGzip,
+ )))
+}
+func init() { artifactsF[Gzip] = Toolchain.newGzip }
+
func (t Toolchain) newGettext() pkg.Artifact {
const (
version = "0.26"