aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/rosa/argp-standalone.go
blob: d5e77b7ddb6f5e4929708e13a78913e45dc8ce35 (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
29
30
31
32
33
34
35
36
package rosa

import "hakurei.app/internal/pkg"

func (t Toolchain) newArgpStandalone(s *S) (pkg.Artifact, string) {
	const (
		version  = "1.3"
		checksum = "vtW0VyO2pJ-hPyYmDI2zwSLS8QL0sPAUKC1t3zNYbwN2TmsaE-fADhaVtNd3eNFl"
	)
	return s.NewPackage(t, "argp-standalone", version, newTar(
		"http://www.lysator.liu.se/~nisse/misc/"+
			"argp-standalone-"+version+".tar.gz",
		checksum,
		pkg.TarGzip,
	), &PackageAttr{
		Env: []string{
			"CC=cc -std=gnu89 -fPIC",
		},
	}, &MakeHelper{
		Install: `
install -D -m644 /usr/src/argp-standalone/argp.h /work/system/include/argp.h
install -D -m755 libargp.a /work/system/lib/libargp.a
`,
	},
		Diffutils,
	), version
}
func init() {
	native.MustRegister(&Artifact{
		f: Toolchain.newArgpStandalone,

		Name:        "argp-standalone",
		Description: "hierarchical argument parsing library broken out from glibc",
		Website:     "http://www.lysator.liu.se/~nisse/misc/",
	})
}