aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/rosa/gnu.go
diff options
context:
space:
mode:
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"