package dtc {
	description = "The Device Tree Compiler"
	website = "https://git.kernel.org/pub/scm/utils/dtc/dtc.git"
	anitya = 16911

	version# = "1.7.2"
	source = remoteTar {
		url = "https://git.kernel.org/pub/scm/utils/dtc/dtc.git/snapshot/dtc-v${version}.tar.gz"
		checksum = "vUoiRynPyYRexTpS6USweT5p4SVHvvVJs8uqFkkVD-YnFjwf6v3elQ0-Etrh00Dt"
		compress = gzip
	}

	// works around buggy test:
	// fdtdump-runtest.sh /usr/src/dtc/tests/fdtdump.dts
	writable
	chmod

	exec = meson {
		setup = endi [
			"Dyaml": false
			"Dstatic-build": "true"
		]
	}

	inputs = [
		flex
		bison
		m4
		coreutils
		diffutils
	]
}
