summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--main/linux-headers/APKBUILD16
1 files changed, 12 insertions, 4 deletions
diff --git a/main/linux-headers/APKBUILD b/main/linux-headers/APKBUILD
index 2dce29014..272d63ce0 100644
--- a/main/linux-headers/APKBUILD
+++ b/main/linux-headers/APKBUILD
@@ -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 {} \;