1
0
forked from rosa/hakurei
Files
hakurei/internal/rosa/procps.go
Ophestra 2548a681e9 internal/rosa: key-value type
This type is used very frequently. The new type is much easier to type and can receive helper methods eventually if needed.

Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-03-26 16:23:15 +09:00

40 lines
840 B
Go

package rosa
import "hakurei.app/internal/pkg"
func (t Toolchain) newProcps() (pkg.Artifact, string) {
const (
version = "4.0.6"
checksum = "pl_fZLvDlv6iZTkm8l_tHFpzTDVFGCiSJEs3eu0zAX6u36AV36P_En8K7JPScRWM"
)
return t.NewPackage("procps", version, pkg.NewHTTPGetTar(
nil, "https://gitlab.com/procps-ng/procps/-/archive/"+
"v"+version+"/procps-v"+version+".tar.bz2",
mustDecode(checksum),
pkg.TarBzip2,
), nil, &MakeHelper{
Generate: "./autogen.sh",
Configure: []KV{
{"without-ncurses"},
},
},
Automake,
Gettext,
Libtool,
Gzip,
PkgConfig,
), version
}
func init() {
artifactsM[Procps] = Metadata{
f: Toolchain.newProcps,
Name: "procps",
Description: "command line and full screen utilities for browsing procfs",
Website: "https://gitlab.com/procps-ng/procps",
ID: 3708,
}
}