aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal
diff options
context:
space:
mode:
Diffstat (limited to 'internal')
-rw-r--r--internal/rosa/all.go2
-rw-r--r--internal/rosa/procps.go37
2 files changed, 39 insertions, 0 deletions
diff --git a/internal/rosa/all.go b/internal/rosa/all.go
index e5b41ac4..8edf09b5 100644
--- a/internal/rosa/all.go
+++ b/internal/rosa/all.go
@@ -65,6 +65,7 @@ const (
Perl
PkgConfig
Pluggy
+ Procps
PyTest
Pygments
Python
@@ -176,6 +177,7 @@ func ResolveName(name string) (p PArtifact, ok bool) {
"perl": Perl,
"pkg-config": PkgConfig,
"pluggy": Pluggy,
+ "procps": Procps,
"pytest": PyTest,
"pygments": Pygments,
"python": Python,
diff --git a/internal/rosa/procps.go b/internal/rosa/procps.go
new file mode 100644
index 00000000..53f5ccde
--- /dev/null
+++ b/internal/rosa/procps.go
@@ -0,0 +1,37 @@
+package rosa
+
+import "hakurei.app/internal/pkg"
+
+func (t Toolchain) newProcps() pkg.Artifact {
+ const (
+ version = "4.0.6"
+ checksum = "pl_fZLvDlv6iZTkm8l_tHFpzTDVFGCiSJEs3eu0zAX6u36AV36P_En8K7JPScRWM"
+ )
+ return t.NewViaMake("procps", version, t.NewPatchedSource(
+ "procps", version, pkg.NewHTTPGetTar(
+ nil, "https://gitlab.com/procps-ng/procps/-/archive/"+
+ "v"+version+"/procps-v"+version+".tar.bz2",
+ mustDecode(checksum),
+ pkg.TarBzip2,
+ ), false,
+ ), &MakeAttr{
+ Writable: true,
+ ScriptEarly: `
+cd /usr/src/procps
+./autogen.sh
+`,
+ Configure: [][2]string{
+ {"without-ncurses"},
+ },
+ },
+ t.Load(M4),
+ t.Load(Perl),
+ t.Load(Autoconf),
+ t.Load(Automake),
+ t.Load(Gettext),
+ t.Load(Libtool),
+ t.Load(Gzip),
+ t.Load(PkgConfig),
+ )
+}
+func init() { artifactsF[Procps] = Toolchain.newProcps }