Commit 2647bd61 authored by Timo Teräs's avatar Timo Teräs Committed by Natanael Copa

main/linux-headers: properly set as arch specific package

since the headers produced depend on ARCH. also support
crosscompiling and arm.
parent 7ca62936
......@@ -2,10 +2,11 @@
pkgname=linux-headers
pkgver=3.8.7
_kernver=3.8
pkgrel=0
pkgrel=1
pkgdesc="Linux system headers"
url="http://kernel.org"
arch="noarch"
arch="all"
_carch=${CARCH/armel/arm}
license='GPL-2'
makedepends="perl"
if [ "$ALPINE_LIBC" = "eglibc" ]; then
......@@ -29,11 +30,10 @@ build() {
return 0
}
package() {
cd "$srcdir"/linux-$_kernver
mkdir -p "$pkgdir/usr"
make headers_install INSTALL_HDR_PATH="$pkgdir/usr" || return 1
make headers_install ARCH="${_carch}" INSTALL_HDR_PATH="$pkgdir/usr" || return 1
find "$pkgdir/usr" \( -name .install -o -name ..install.cmd \) -exec \
rm -f {} \;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment