aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/rosa/musl-obstack.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/rosa/musl-obstack.go')
-rw-r--r--internal/rosa/musl-obstack.go33
1 files changed, 33 insertions, 0 deletions
diff --git a/internal/rosa/musl-obstack.go b/internal/rosa/musl-obstack.go
new file mode 100644
index 00000000..2b45ed87
--- /dev/null
+++ b/internal/rosa/musl-obstack.go
@@ -0,0 +1,33 @@
+package rosa
+
+import "hakurei.app/internal/pkg"
+
+func (t Toolchain) newMuslObstack() pkg.Artifact {
+ const (
+ version = "1.2.3"
+ checksum = "tVRY_KjIlkkMszcaRlkKdBVQHIXTT_T_TiMxbwErlILXrOBosocg8KklppZhNdCG"
+ )
+ return t.NewViaMake("musl-obstack", version, pkg.NewHTTPGetTar(
+ nil, "https://github.com/void-linux/musl-obstack/archive/refs/tags/"+
+ "v"+version+".tar.gz",
+ mustDecode(checksum),
+ pkg.TarGzip,
+ ), &MakeAttr{
+ Writable: true,
+ Env: []string{
+ "CC=cc -fPIC",
+ },
+ ScriptEarly: `
+cd /usr/src/musl-obstack
+./bootstrap.sh
+`,
+ },
+ t.Load(M4),
+ t.Load(Perl),
+ t.Load(Autoconf),
+ t.Load(Automake),
+ t.Load(Libtool),
+ t.Load(PkgConfig),
+ )
+}
+func init() { artifactsF[MuslObstack] = Toolchain.newMuslObstack }