Files
hakurei/internal/rosa/libgd.go
Ophestra 916093770a
Some checks failed
Test / Create distribution (push) Failing after 50s
Test / ShareFS (push) Failing after 55s
Test / Hakurei (push) Failing after 1m11s
Test / Sandbox (race detector) (push) Failing after 1m11s
Test / Sandbox (push) Failing after 1m21s
Test / Hakurei (race detector) (push) Failing after 1m34s
Test / Flake checks (push) Has been skipped
internal/rosa: key metadata by string
For upcoming azalea integration. The API is quite ugly right now to ease migration.

Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-05-17 15:05:52 +09:00

41 lines
795 B
Go

package rosa
import "hakurei.app/internal/pkg"
func (t Toolchain) newLibgd(s *S) (pkg.Artifact, string) {
const (
version = "2.3.3"
checksum = "8T-sh1_FJT9K9aajgxzh8ot6vWIF-xxjcKAHvTak9MgGUcsFfzP8cAvvv44u2r36"
)
return s.NewPackage(t, "libgd", version, newFromGitHubRelease(
"libgd/libgd",
"gd-"+version,
"libgd-"+version+".tar.gz", checksum,
pkg.TarGzip,
), &PackageAttr{
Env: []string{
"TMPDIR=/dev/shm/gd",
},
ScriptEarly: `
mkdir /dev/shm/gd
`,
}, (*MakeHelper)(nil),
Zlib,
), version
}
func init() {
native.MustRegister(&Artifact{
f: Toolchain.newLibgd,
Name: "libgd",
Description: "an open source code library for the dynamic creation of images",
Website: "https://libgd.github.io/",
Dependencies: P{
Zlib,
},
ID: 880,
})
}