package openssl {
	description = "TLS/SSL and crypto library"
	website = "https://www.openssl.org"
	anitya = 2566
	// strange malformed tags treated as pre-releases in Anitya
	latest = anityaFallback

	version# = "3.6.2"
	source = remoteGitHubRelease {
		suffix = "openssl/openssl"
		tag = "openssl-"+version
		name = "openssl-${version}.tar.gz"
		checksum = "jH004dXTiE01Hp0kyShkWXwrSHEksZi4i_3v47D9H9Uz9LQ1aMwF7mrl2Tb4t_XA"
		compress = gzip
	}

	env = [
		"CC=cc"
	]

	exec = make {
		omitDefaults

		configureName = "/usr/src/openssl/Configure"
		configure = [
			"prefix": "/system"
			"libdir": "lib"
			"openssldir": "etc/ssl"
			"": "no-docs"
		]

		check = [
			"HARNESS_JOBS=${jobsE}"
			"test"
		]
	}

	inputs = [
		perl
		coreutils

		zlib
		kernel-headers
	]
}
