39 lines
906 B
TOML
39 lines
906 B
TOML
[build]
|
|
type = "meson"
|
|
|
|
[build.flags]
|
|
build_dir = "build"
|
|
configure = [
|
|
"--buildtype=release",
|
|
"-Dmanpages=false",
|
|
]
|
|
|
|
[dependencies]
|
|
build = [
|
|
"meson",
|
|
"ninja",
|
|
]
|
|
runtime = [
|
|
"glibc",
|
|
"xz",
|
|
"zlib-ng",
|
|
"openssl",
|
|
"zstd"
|
|
]
|
|
|
|
[package]
|
|
description = "libraries and utilities for loading kernel modules"
|
|
homepage = "https://github.com/kmod-project/kmod"
|
|
license = "LGPL-2.1-or-Later"
|
|
name = "kmod"
|
|
version = "34.2"
|
|
|
|
[[source]]
|
|
extract_dir = "$name-$version"
|
|
sha256 = "5a5d5073070cc7e0c7a7a3c6ec2a0e1780850c8b47b3e3892226b93ffcb9cb54"
|
|
url = "https://www.kernel.org/pub/linux/utils/kernel/kmod/kmod-$version.tar.xz"
|
|
post_extract = [
|
|
'''sed -i 's/\bstatic inline const char \*basename(/static inline const char *kmod_basename(/' shared/missing.h''',
|
|
'''sed -i 's/\bbasename(/kmod_basename(/g' shared/util.c tools/depmod.c libkmod/libkmod-config.c testsuite/testsuite.c'''
|
|
]
|