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

import "hakurei.app/internal/pkg"

func (t Toolchain) newLibffi() (pkg.Artifact, string) {
	const (
		version  = "3.5.2"
		checksum = "2_Q-ZNBBbVhltfL5zEr0wljxPegUimTK4VeMSiwJEGksls3n4gj3lV0Ly3vviSFH"
	)
	return t.NewPackage("libffi", version, newFromGitHubRelease(
		"libffi/libffi",
		"v"+version,
		"libffi-"+version+".tar.gz",
		checksum,
		pkg.TarGzip,
	), nil, (*MakeHelper)(nil),
		KernelHeaders,
	), version
}
func init() {
	native.mustRegister(Toolchain.newLibffi, &Metadata{
		Name:        "libffi",
		Description: "a portable, high level programming interface to various calling conventions",
		Website:     "https://sourceware.org/libffi/",

		ID: 1611,
	})
}