package kmod {
	description = "a set of tools to handle common tasks with Linux kernel modules"
	website = "https://git.kernel.org/pub/scm/utils/kernel/kmod/kmod.git"
	anitya = 1517

	version# = "34.2"
	source = remoteTar {
		url = "https://www.kernel.org/pub/linux/utils/kernel/kmod/kmod-${version}.tar.gz"
		checksum = "0K7POeTKxMhExsaTsnKAC6LUNsRSfe6sSZxWONPbOu-GI_pXOw3toU_BIoqfBhJV"
		compress = gzip
	}

	exec = meson {
		setup = [
			"Dmoduledir": "/system/lib/modules"
			"Dsysconfdir": "/system/etc"
			"Dbashcompletiondir": "no"
			"Dfishcompletiondir": "no"
			"Dxz": "disabled"
			"Dmanpages": "false"
		]

		// makes assumptions about the running kernel
		skipTest
	}

	inputs = [
		zlib
		zstd
		openssl
		kernel-headers
	]

	runtime = [
		zlib
		zstd
		openssl
	]
}
