kmod 33-1

This commit is contained in:
xhaa123 2024-09-07 23:18:11 +08:00
parent 191c302763
commit 5ea16ad124

43
kmod/PKGBUILD Normal file
View File

@ -0,0 +1,43 @@
# This is an example PKGBUILD file. Use this as a start to creating your own,
# and remove these comments. For more information, see 'man PKGBUILD'.
# NOTE: Please fill out the license field for your package! If it is unknown,
# then please put 'unknown'.
# Maintainer: Future Linux Team <future_linux@163.com>
pkgname=kmod
pkgver=33
pkgrel=1
pkgdesc="Linux kernel module management tools and library"
arch=('x86_64')
url="https://github.com/kmod-project/kmod"
license=('LGPL-2.1-or-later' 'GPL-2.0-or-later')
depends=('glibc' 'zlib' 'openssl' 'xz' 'zstd')
options=('strip')
source=(https://www.kernel.org/pub/linux/utils/kernel/${pkgname}/${pkgname}-${pkgver}.tar.xz)
sha256sums=(dc768b3155172091f56dc69430b5481f2d76ecd9ccb54ead8c2540dbcf5ea9bc)
build() {
cd ${pkgname}-${pkgver}
${CONFIGURE} \
--sysconfdir=/etc \
--with-openssl \
--with-xz \
--with-zstd \
--with-zlib \
--disable-manpages
make
}
package() {
cd ${pkgname}-${pkgver}
make DESTDIR=${pkgdir} install
install -vdm755 ${pkgdir}/usr/sbin
for target in depmod insmod modinfo modprobe rmmod lsmod; do
ln -sfv /usr/bin/kmod ${pkgdir}/usr/sbin/${target}
rm -fv ${pkgdir}/usr/bin/$target
done
}