Commit db8d8067 authored by Natanael Copa's avatar Natanael Copa

main/linux-headers: detect if headers_install fails

parent d184dae8
......@@ -2,7 +2,7 @@
pkgname=linux-headers
pkgver=2.6.32.2
_kernver=2.6.32
pkgrel=1
pkgrel=2
pkgdesc="Linux system headers"
url="http://kernel.org"
license='GPL-2'
......@@ -14,15 +14,23 @@ source="ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-$_kernver.tar.bz2
scsi.patch
"
build() {
cd $srcdir/linux-$_kernver
prepare() {
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
}
build() {
return 0
}
package() {
cd "$srcdir"/linux-$_kernver
mkdir -p "$pkgdir/usr"
make headers_install INSTALL_HDR_PATH="$pkgdir/usr"
make headers_install 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