aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/rosa/libgd.go
blob: e92ce9f0d73f4d1cff6c80e4a24b6fef1337e3c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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, 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() {
	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/",

		Dependencies: P{
			Zlib,
		},

		ID: 880,
	}
}