package libpsl {
	description = "provides functions to work with the Mozilla Public Suffix List";
	website = "https://rockdaboot.github.io/libpsl";
	anitya = 7305;

	version# = "0.23.0";
	source = remoteGitHubRelease {
		suffix = "rockdaboot/libpsl";
		tag = version;
		name = "libpsl-"+version+".tar.gz";
		checksum = "7M0i3g6snxXGri0PcE5iYJFVGhZjBq1QxEom45ML0tCyu8b7i-ydvlcIAS2g9zqa";
		compress = gzip;
	};

	writable = true;
	early = `
test_disable() { chmod +w "$2" && echo "$1" > "$2"; }

test_disable 'int main(){return 0;}' tests/test-is-public-builtin.c
`;

	exec = make {};

	inputs = [
		pkg-config,
		python,
	];
}
