package pcre2 {
	description = "a set of C functions that implement regular expression pattern matching"
	website = "https://pcre2project.github.io/pcre2"
	anitya = 5832

	version# = "10.47"
	source = remoteGitHubRelease {
		suffix = "PCRE2Project/pcre2"
		tag = "pcre2-"+version
		name = "pcre2-${version}.tar.bz2";
		checksum = "IbC24vVayju6nB9EhrBPSDexk22wDecdpyrjgC3nCZXkwTnUjq4CD2q5sopqu6CW"
		compress = bzip2
	}

	early = `# RunGrepTest expects /bin/echo
	         ln -s ../system/bin/toybox /bin/echo`

	exec = make {
		configure = {
			"enable-jit"
			"enable-pcre2-8"
			"enable-pcre2-16"
			"enable-pcre2-32"
		}
	}

	inputs = [ diffutils ]
}
