aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/rosa/pcre2.go
blob: c2c41ac831ff4c7577f053ac61c3d1832a73b1cf (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
package rosa

import (
	"hakurei.app/internal/pkg"
)

func (t Toolchain) newPCRE2() (pkg.Artifact, string) {
	const (
		version  = "10.47"
		checksum = "IbC24vVayju6nB9EhrBPSDexk22wDecdpyrjgC3nCZXkwTnUjq4CD2q5sopqu6CW"
	)
	return t.NewPackage("pcre2", version, newFromGitHubRelease(
		"PCRE2Project/pcre2",
		"pcre2-"+version,
		"pcre2-"+version+".tar.bz2",
		checksum,
		pkg.TarBzip2,
	), &PackageAttr{
		ScriptEarly: `
# RunGrepTest expects /bin/echo
ln -s ../system/bin/toybox /bin/echo
`,
	}, &MakeHelper{
		Configure: []KV{
			{"enable-jit"},
			{"enable-pcre2-8"},
			{"enable-pcre2-16"},
			{"enable-pcre2-32"},
		},
	},
		Diffutils,
	), version
}
func init() {
	native.mustRegister(Toolchain.newPCRE2, &Metadata{
		Name:        "pcre2",
		Description: "a set of C functions that implement regular expression pattern matching",
		Website:     "https://pcre2project.github.io/pcre2/",

		ID: 5832,
	})
}