aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/rosa/pcre2.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/rosa/pcre2.go')
-rw-r--r--internal/rosa/pcre2.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/internal/rosa/pcre2.go b/internal/rosa/pcre2.go
index 8aa89514..972ac41d 100644
--- a/internal/rosa/pcre2.go
+++ b/internal/rosa/pcre2.go
@@ -4,12 +4,12 @@ import (
"hakurei.app/internal/pkg"
)
-func (t Toolchain) newPCRE2() (pkg.Artifact, string) {
+func (t Toolchain) newPCRE2(s *S) (pkg.Artifact, string) {
const (
version = "10.47"
checksum = "IbC24vVayju6nB9EhrBPSDexk22wDecdpyrjgC3nCZXkwTnUjq4CD2q5sopqu6CW"
)
- return t.NewPackage("pcre2", version, newFromGitHubRelease(
+ return s.NewPackage(t, "pcre2", version, newFromGitHubRelease(
"PCRE2Project/pcre2",
"pcre2-"+version,
"pcre2-"+version+".tar.bz2",
@@ -32,7 +32,7 @@ ln -s ../system/bin/toybox /bin/echo
), version
}
func init() {
- artifactsM[PCRE2] = Metadata{
+ native.MustRegister(&Artifact{
f: Toolchain.newPCRE2,
Name: "pcre2",
@@ -40,5 +40,5 @@ func init() {
Website: "https://pcre2project.github.io/pcre2/",
ID: 5832,
- }
+ })
}