package zlib {
	description = "lossless data-compression library"
	website = "https://zlib.net"
	anitya = 5303

	version# = "1.3.2"
	source = remoteTar {
		url = "https://www.zlib.net/fossils/zlib-${version}.tar.gz"
		checksum = "KHZrePe42vL2XvOUE3KlJkp1UgWhWkl0jjT_BOvFhuM4GzieEH9S7CioepOFVGYB"
		compress = gzip
	}

	exec = cmake {
		cache = [
			"CMAKE_C_FLAGS": "-fPIC"
			"ZLIB_BUILD_TESTING": "ON"
			"ZLIB_BUILD_SHARED": "ON"
			"ZLIB_BUILD_STATIC": "ON"
			"ZLIB_BUILD_MINIZIP": "OFF"

			"ZLIB_INSTALL": "ON"
			"ZLIB_PREFIX": "OFF"
		]

		// ninja dependency loop
		make
	};
}
