package libarchive {
	description = "multi-format archive and compression library";
	website = "https://www.libarchive.org";
	anitya = 1558;

	version# = "3.8.9";
	source = remoteGitHub {
		suffix = "libarchive/libarchive";
		tag = "v"+version;
		checksum = "8C_8Mr22elOAO8Qvxl-B-R-B35M7dpdFdAlph1CeE1L75JdyUnolee-P3KDRFc8T";
	};

	files = { "CTestCustom.cmake"; };

	writable = true;
	early = "\ninstall -Dv /usr/src/CTestCustom.cmake /cure/\n";

	exec = cmake {};

	runtime = [
		zlib,
		zstd,
	];
}
