diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-04-03 00:42:59 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-04-03 00:42:59 +0900 |
| commit | e87f59c4e4abe1a1cc71aadc8670bf775de3083a (patch) | |
| tree | 41f498ca1dcc46d562dbd81bfb9eef7a3918706a | |
| parent | 3b221c3e7759a4507b698cbba1eb9140290f7d64 (diff) | |
internal/rosa/gnu: readline artifact
Nice to have library for command line programs.
Signed-off-by: Ophestra <cat@gensokyo.uk>
| -rw-r--r-- | internal/rosa/all.go | 1 | ||||
| -rw-r--r-- | internal/rosa/gnu.go | 23 |
2 files changed, 24 insertions, 0 deletions
diff --git a/internal/rosa/all.go b/internal/rosa/all.go index bf2ac566..73061a64 100644 --- a/internal/rosa/all.go +++ b/internal/rosa/all.go @@ -130,6 +130,7 @@ const ( PythonPygments QEMU Rdfind + Readline Rsync Sed Setuptools diff --git a/internal/rosa/gnu.go b/internal/rosa/gnu.go index f4f09b4d..0275e766 100644 --- a/internal/rosa/gnu.go +++ b/internal/rosa/gnu.go @@ -837,6 +837,29 @@ func init() { } } +func (t Toolchain) newReadline() (pkg.Artifact, string) { + const ( + version = "8.3" + checksum = "r-lcGRJq_MvvBpOq47Z2Y1OI2iqrmtcqhTLVXR0xWo37ZpC2uT_md7gKq5o_qTMV" + ) + return t.NewPackage("readline", version, pkg.NewHTTPGetTar( + nil, "https://ftp.gnu.org/gnu/readline/readline-"+version+".tar.gz", + mustDecode(checksum), + pkg.TarGzip, + ), nil, (*MakeHelper)(nil)), version +} +func init() { + artifactsM[Readline] = Metadata{ + f: Toolchain.newReadline, + + Name: "readline", + Description: "provides a set of functions for use by applications that allow users to edit command lines as they are typed in", + Website: "https://tiswww.cwru.edu/php/chet/readline/rltop.html", + + ID: 4173, + } +} + func (t Toolchain) newGnuTLS() (pkg.Artifact, string) { const ( version = "3.8.12" |
