forked from security/hakurei
34 lines
738 B
Go
34 lines
738 B
Go
package rosa
|
|
|
|
import (
|
|
"hakurei.app/internal/pkg"
|
|
)
|
|
|
|
func (t Toolchain) newPCRE2() pkg.Artifact {
|
|
const (
|
|
version = "10.47"
|
|
checksum = "IbC24vVayju6nB9EhrBPSDexk22wDecdpyrjgC3nCZXkwTnUjq4CD2q5sopqu6CW"
|
|
)
|
|
return t.NewViaMake("pcre2", version, pkg.NewHTTPGetTar(
|
|
nil, "https://github.com/PCRE2Project/pcre2/releases/download/"+
|
|
"pcre2-"+version+"/pcre2-"+version+".tar.bz2",
|
|
mustDecode(checksum),
|
|
pkg.TarBzip2,
|
|
), &MakeAttr{
|
|
ScriptEarly: `
|
|
# RunGrepTest expects /bin/echo
|
|
ln -s ../system/bin/toybox /bin/echo
|
|
`,
|
|
|
|
Configure: [][2]string{
|
|
{"enable-jit"},
|
|
{"enable-pcre2-8"},
|
|
{"enable-pcre2-16"},
|
|
{"enable-pcre2-32"},
|
|
},
|
|
},
|
|
t.Load(Diffutils),
|
|
)
|
|
}
|
|
func init() { artifactsF[PCRE2] = Toolchain.newPCRE2 }
|