aboutsummaryrefslogtreecommitdiffstats
path: root/main/linux-headers/APKBUILD
blob: 2dce290148892944b3e6c4e74bbb7fb8a3909825 (plain) (blame)
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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=linux-headers
pkgver=2.6.32.2
_kernver=2.6.32
pkgrel=1
pkgdesc="Linux system headers"
url="http://kernel.org"
license='GPL-2'
makedepends="perl"
replaces="uclibc-dev"
options="!strip !tracedeps"
source="ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-$_kernver.tar.bz2
	ftp://ftp.kernel.org/pub/linux/kernel/v2.6/patch-$pkgver.bz2
	scsi.patch
	"

build() {
	cd $srcdir/linux-$_kernver
	if [ "$_kernver" != "$pkgver" ]; then
		bunzip2 -c < ../patch-$pkgver.bz2 | patch -p1 || return 1
	fi
	patch -p1 -i "$srcdir"/scsi.patch || return 1

	mkdir -p "$pkgdir/usr"
	make headers_install INSTALL_HDR_PATH="$pkgdir/usr" 

	find "$pkgdir/usr" \( -name .install -o -name ..install.cmd \) -exec \
		rm -f {} \;

	# provided by libdrm
	rm -rf "$pkgdir"/usr/include/drm
}

md5sums="260551284ac224c3a43c4adac7df4879  linux-2.6.32.tar.bz2
924b7aa0fcd6e54c12ecc9b3c3082f59  patch-2.6.32.2.bz2
b6d05566fcfe07770d9386f0588f8758  scsi.patch"