mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-02-11 19:02:42 +01:00
56 lines
1.4 KiB
Plaintext
56 lines
1.4 KiB
Plaintext
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
|
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
|
|
pkgname=kmod
|
|
pkgver=15
|
|
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 libxslt"
|
|
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 \
|
|
--build=$CBUILD \
|
|
--host=$CHOST \
|
|
--bindir=/bin \
|
|
--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="d03372179ed2cfa0c52b6672cf438901 kmod-15.tar.xz"
|
|
sha256sums="e8ef0ea7e1929b46aa681fe6ce58c5e62d0026289026ebfc63abae3b8fd5ca9e kmod-15.tar.xz"
|
|
sha512sums="67a03cabe9d81c14eb0bef20f3c8ff4614418cb2b2c3e1428d8a57399372ecdce6e403399a578d2f62a1ae4b61c83713edd1ad1e31533ea35503c5b11b92c223 kmod-15.tar.xz"
|