All checks were successful
Test / Create distribution (push) Successful in 58s
Test / Sandbox (push) Successful in 2m36s
Test / Hakurei (push) Successful in 3m42s
Test / ShareFS (push) Successful in 3m48s
Test / Sandbox (race detector) (push) Successful in 4m55s
Test / Hakurei (race detector) (push) Successful in 5m53s
Test / Flake checks (push) Successful in 1m35s
This had to be done out-of-band because there was no way to efficiently represent these within Artifact. Signed-off-by: Ophestra <cat@gensokyo.uk>
35 lines
793 B
Go
35 lines
793 B
Go
package rosa
|
|
|
|
import "hakurei.app/internal/pkg"
|
|
|
|
func (t Toolchain) newLibgd() (pkg.Artifact, string) {
|
|
const (
|
|
version = "2.3.3"
|
|
checksum = "8T-sh1_FJT9K9aajgxzh8ot6vWIF-xxjcKAHvTak9MgGUcsFfzP8cAvvv44u2r36"
|
|
)
|
|
return t.NewPackage("libgd", version, pkg.NewHTTPGetTar(
|
|
nil, "https://github.com/libgd/libgd/releases/download/"+
|
|
"gd-"+version+"/libgd-"+version+".tar.gz",
|
|
mustDecode(checksum),
|
|
pkg.TarGzip,
|
|
), &PackageAttr{
|
|
Env: []string{
|
|
"TMPDIR=/dev/shm/gd",
|
|
},
|
|
ScriptEarly: `
|
|
mkdir /dev/shm/gd
|
|
`,
|
|
}, (*MakeHelper)(nil),
|
|
Zlib,
|
|
), version
|
|
}
|
|
func init() {
|
|
artifactsM[Libgd] = Metadata{
|
|
f: Toolchain.newLibgd,
|
|
|
|
Name: "libgd",
|
|
Description: "an open source code library for the dynamic creation of images",
|
|
Website: "https://libgd.github.io/",
|
|
}
|
|
}
|