aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/rosa/unzip.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-05-20 06:21:49 +0900
committerOphestra <cat@gensokyo.uk>2026-05-20 06:21:49 +0900
commit4bec0b890cdb7c0e00b54ab7db63405d77f44395 (patch)
tree37a727156af6ab01736f1901d3e21c48dc3a8178 /internal/rosa/unzip.go
parent7770ccf0aaeae5e81a911f789c0a211c9d25ffad (diff)
internal/rosa/package: migrate unzip
This is now possible via the generic helper. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/rosa/unzip.go')
-rw-r--r--internal/rosa/unzip.go42
1 files changed, 0 insertions, 42 deletions
diff --git a/internal/rosa/unzip.go b/internal/rosa/unzip.go
deleted file mode 100644
index f2e62028..00000000
--- a/internal/rosa/unzip.go
+++ /dev/null
@@ -1,42 +0,0 @@
-package rosa
-
-import (
- "strings"
-
- "hakurei.app/internal/pkg"
-)
-
-func (t Toolchain) newUnzip() (pkg.Artifact, string) {
- const (
- version = "6.0"
- checksum = "fcqjB1IOVRNJ16K5gTGEDt3zCJDVBc7EDSra9w3H93stqkNwH1vaPQs_QGOpQZu1"
- )
- return t.New("unzip-"+version, 0, t.Append(nil,
- Make,
- Coreutils,
- ), nil, nil, `
-cd /usr/src/unzip/
-unix/configure
-make -f unix/Makefile generic1
-
-mkdir -p /work/system/bin/
-mv unzip /work/system/bin/
-`, pkg.Path(AbsUsrSrc.Append("unzip"), true, t.NewPatchedSource(
- "unzip", version, newTar(
- "https://downloads.sourceforge.net/project/infozip/"+
- "UnZip%206.x%20%28latest%29/UnZip%20"+version+"/"+
- "unzip"+strings.ReplaceAll(version, ".", "")+".tar.gz",
- checksum,
- pkg.TarGzip,
- ), false,
- ))), version
-}
-func init() {
- native.mustRegister(Toolchain.newUnzip, &Metadata{
- Name: "unzip",
- Description: "portable compression/archiver utilities",
- Website: "https://infozip.sourceforge.net/",
-
- ID: 8684,
- })
-}