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() {
	artifactsM[Libffi] = Metadata{
		f: Toolchain.newLibffi,

		Name:        "libffi",
		Description: "a portable, high level programming interface to various calling conventions",
		Website:     "https://sourceware.org/libffi/",

		ID: 1611,
	}
}
