aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/rosa/libbsd.go
blob: 6b2230078a05254ef3866e4230c4476d183815e4 (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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
package rosa

import "hakurei.app/internal/pkg"

func (t Toolchain) newLibmd() (pkg.Artifact, string) {
	const (
		version  = "1.1.0"
		checksum = "9apYqPPZm0j5HQT8sCsVIhnVIqRD7XgN7kPIaTwTqnTuUq5waUAMq4M7ev8CODJ1"
	)
	return t.NewPackage("libmd", version, t.newTagRemote(
		"https://git.hadrons.org/git/libmd.git",
		version, checksum,
	), nil, &MakeHelper{
		Generate: "echo '" + version + "' > .dist-version && ./autogen",
		ScriptMakeEarly: `
install -D /usr/src/libmd/src/helper.c src/helper.c
`,
	},
		Automake,
		Libtool,
	), version
}
func init() {
	artifactsM[Libmd] = Metadata{
		f: Toolchain.newLibmd,

		Name:        "libmd",
		Description: "Message Digest functions from BSD systems",
		Website:     "https://www.hadrons.org/software/libmd/",

		ID: 15525,
	}
}

func (t Toolchain) newLibbsd() (pkg.Artifact, string) {
	const (
		version  = "0.12.2"
		checksum = "NVS0xFLTwSP8JiElEftsZ-e1_C-IgJhHrHE77RwKt5178M7r087waO-zYx2_dfGX"
	)
	return t.NewPackage("libbsd", version, t.newTagRemote(
		"https://gitlab.freedesktop.org/libbsd/libbsd.git",
		version, checksum,
	), nil, &MakeHelper{
		Generate: "echo '" + version + "' > .dist-version && ./autogen",
	},
		Automake,
		Libtool,

		Libmd,
	), version
}
func init() {
	artifactsM[Libbsd] = Metadata{
		f: Toolchain.newLibbsd,

		Name:        "libbsd",
		Description: "provides useful functions commonly found on BSD systems",
		Website:     "https://libbsd.freedesktop.org/",

		ID: 1567,
	}
}