package curl {
	description = "command line tool and library for transferring data with URLs"
	website = "https://curl.se"
	anitya = 381

	version# = "8.20.0"
	source = remoteTar {
		url = "https://curl.se/download/curl-${version}.tar.bz2"
		checksum = "xyHXwrngIRGMasuzhn-I5MSCOhktwINbsWt1f_LuR-5jRVvyx_g6U1EQfDLEbr9r"
		compress = bzip2
	}

	// remove broken test
	writable
	early = "chmod +w tests/data && rm -f tests/data/test459"

	exec = make {
		configure = [
			"with-openssl"
			"with-ca-bundle": "/system/etc/ssl/certs/ca-bundle.crt"

			"disable-smb"
		]

		check = [
			"TFLAGS=${jobsLFlagE}"
			"test-nonflaky"
		]
	}

	inputs = [
		perl
		python
		pkg-config
		diffutils

		libpsl
		openssl
	]

	runtime = [
		zlib
		zstd
		libpsl
		openssl
	]
}
