# Contributor: Natanael Copa # Maintainer: Natanael Copa pkgname=kmod pkgver=10 pkgrel=0 pkgdesc="Linux kernel module management utilities" url="http://git.kernel.org/?p=utils/kernel/kmod/kmod.git;a=summary" arch="all" license="GPLv2+" depends="" depends_dev="" makedepends="$depends_dev zlib-dev xz-dev" install="" subpackages="$pkgname-dev $pkgname-doc $pkgname-libs" source="http://ftp.kernel.org/pub/linux/utils/kernel/kmod/kmod-$pkgver.tar.xz" _builddir="$srcdir"/kmod-$pkgver prepare() { local i cd "$_builddir" for i in $source; do case $i in *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; esac done } build() { cd "$_builddir" ./configure --bindir=/bin \ --with-rootprefix= \ --with-rootlibdir=/lib \ --with-zlib \ --with-xz \ || return 1 make || return 1 } package() { cd "$_builddir" make DESTDIR="$pkgdir" install || return 1 rm -f "$pkgdir"/usr/lib/*.la } libs() { pkgdesc="Libraries to handle kernel module loading and unloading" mkdir -p "$subpkgdir"/ mv "$pkgdir"/lib "$subpkgdir"/ } md5sums="e2a883c4df15a50f78a7a61d5b64089f kmod-10.tar.xz"