summaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2010-05-05 06:49:36 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2010-05-05 06:49:36 +0000
commitdb8d806774c0ebe3917540ea2581c61549dc4747 (patch)
treec9bf522ee1ad43c3dd057bbb358bb95e35965a70 /main
parentd184dae88f067a87efcd7616ad0d3c1772aeec24 (diff)
downloadaports-db8d806774c0ebe3917540ea2581c61549dc4747.tar.bz2
aports-db8d806774c0ebe3917540ea2581c61549dc4747.tar.xz
main/linux-headers: detect if headers_install fails
Diffstat (limited to 'main')
-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 {} \;