pkgname=kmod
pkgver=31
pkgrel=2
arch=('armv7h' 'aarch64')
license=('unknown')
source=("$pkgname-$pkgver.tar.xz")
build() {
cd "$pkgname-$pkgver"
./configure --prefix=/usr \
--sysconfdir=/etc \
--with-openssl \
--with-xz \
--with-zstd \
--with-zlib
make
}
package() {
cd "$pkgname-$pkgver"
make DESTDIR="$pkgdir/" install
mkdir -p "$pkgdir"/usr/sbin
for target in insmod modinfo modprobe rmmod; do
ln -sfv ../bin/kmod "$pkgdir"/usr/sbin/$target
done
# Arch-kernel hooks expect /usr/bin/depmod
ln -sfv kmod "$pkgdir"/usr/bin/depmod
ln -sfv kmod "$pkgdir"/usr/bin/lsmod
}
sha256sums=('f5a6949043cc72c001b728d8c218609c5a15f3c33d75614b78c79418fcf00d80')