# Maintainer: Natanael Copa pkgname=linux-headers pkgver=2.6.38.2 _kernver=2.6.38 pkgrel=0 pkgdesc="Linux system headers" url="http://kernel.org" arch="noarch" license='GPL-2' makedepends="perl" if [ "$ALPINE_LIBC" = "eglibc" ]; then replaces="eglibc-dev" else replaces="uclibc-dev" fi 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 " prepare() { cd "$srcdir"/linux-$_kernver if [ "$_kernver" != "$pkgver" ]; then bunzip2 -c < "$srcdir"/patch-$pkgver.bz2 | patch -p1 || return 1 fi } build() { return 0 } package() { cd "$srcdir"/linux-$_kernver mkdir -p "$pkgdir/usr" make headers_install INSTALL_HDR_PATH="$pkgdir/usr" || return 1 find "$pkgdir/usr" \( -name .install -o -name ..install.cmd \) -exec \ rm -f {} \; # provided by libdrm rm -rf "$pkgdir"/usr/include/drm } md5sums="7d471477bfa67546f902da62227fa976 linux-2.6.38.tar.bz2 599badab31c4920d4122133208c810d7 patch-2.6.38.2.bz2"