Files
hakurei/internal/rosa/pcre2.go
Ophestra 30eb0d6a61 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:56:53 +09:00

45 lines
923 B
Go

package rosa
import (
"hakurei.app/internal/pkg"
)
func (t Toolchain) newPCRE2(s *S) (pkg.Artifact, string) {
const (
version = "10.47"
checksum = "IbC24vVayju6nB9EhrBPSDexk22wDecdpyrjgC3nCZXkwTnUjq4CD2q5sopqu6CW"
)
return s.NewPackage(t, "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(&Artifact{
f: Toolchain.newPCRE2,
Name: "pcre2",
Description: "a set of C functions that implement regular expression pattern matching",
Website: "https://pcre2project.github.io/pcre2/",
ID: 5832,
})
}