package firmware {
	description = "firmware blobs for use with the Linux kernel"
	website = "https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git"
	anitya = 141464

	version# = "20260519"
	source = remoteGitLab {
		domain = "gitlab.com"
		suffix = "kernel-firmware/linux-firmware"
		ref = version
		checksum = "l-wBRTWclYnJsgV4qtUV1-UL5Y4nknAPre8CMe0dH7PxtAqbaeudEIM_Fnuj0TCV"
	}

	// dedup creates temporary file
	writable

	// does not use configure
	enterSource

	env = [
		"HOME=/proc/nonexistent"
	]

	exec = make {
		omitDefaults
		skipConfigure
		inPlace

		make = [
			"DESTDIR=/work/system"
			"install-zst"
		]

		// requires pre-commit
		skipCheck

		install = "make ${jobFlagsE} DESTDIR=/work/system dedup"
	}

	inputs = [
		parallel
		rdfind
		zstd
		findutils
		coreutils
	]
}
