aboutsummaryrefslogtreecommitdiffstats
path: root/main/kmod/APKBUILD
blob: ae1afceec4c887274ad67f3e1407266e25280547 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=kmod
pkgver=13
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 --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="d5aba43b9370cd52f3cb35e82a1aa595  kmod-13.tar.xz"
sha256sums="6c36d3abba2f98c84973ae275951c866f8bf304e7356c2fe60633800239d7956  kmod-13.tar.xz"
sha512sums="6182a043c32944c2dc336101e4d8a9be9ccd0106677f9f7a2e76b83a09ec2fc1333aed9b82773abe09f8adb1771e796690f1610c64b337e21bdabffe76fed434  kmod-13.tar.xz"