aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/rosa/curl.go
blob: 260928b69d971325421295069c1c776750864698 (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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
package rosa

import "hakurei.app/internal/pkg"

func (t Toolchain) newCurl() (pkg.Artifact, string) {
	const (
		version  = "8.19.0"
		checksum = "YHuVLVVp8q_Y7-JWpID5ReNjq2Zk6t7ArHB6ngQXilp_R5l3cubdxu3UKo-xDByv"
	)
	return t.NewPackage("curl", version, pkg.NewHTTPGetTar(
		nil, "https://curl.se/download/curl-"+version+".tar.bz2",
		mustDecode(checksum),
		pkg.TarBzip2,
	), &PackageAttr{
		Patches: [][2]string{
			{"test459-misplaced-line-break", `diff --git a/tests/data/test459 b/tests/data/test459
index 7a2e1db7b3..cc716aa65a 100644
--- a/tests/data/test459
+++ b/tests/data/test459
@@ -54,8 +54,8 @@ Content-Type: application/x-www-form-urlencoded
 arg
 </protocol>
 <stderr mode="text">
-Warning: %LOGDIR/config:1 Option 'data' uses argument with unquoted whitespace.%SP
-Warning: This may cause side-effects. Consider double quotes.
+Warning: %LOGDIR/config:1 Option 'data' uses argument with unquoted%SP
+Warning: whitespace. This may cause side-effects. Consider double quotes.
 </stderr>
 </verify>
 </testcase>
`},
		},
	}, &MakeHelper{
		Configure: [][2]string{
			{"with-openssl"},
			{"with-ca-bundle", "/system/etc/ssl/certs/ca-bundle.crt"},

			{"disable-smb"},
		},
		Check: []string{
			`TFLAGS="-j$(expr "$(nproc)" '*' 2)"`,
			"test-nonflaky",
		},
	},
		Perl,
		Python,
		PkgConfig,
		Diffutils,

		Libpsl,
		OpenSSL,
	), version
}
func init() {
	artifactsM[Curl] = Metadata{
		f: Toolchain.newCurl,

		Name:        "curl",
		Description: "command line tool and library for transferring data with URLs",
		Website:     "https://curl.se/",

		Dependencies: P{
			Libpsl,
			OpenSSL,
		},

		ID: 381,
	}
}