wok diff linux-api-headers/receipt @ rev 12434
Up exosip (3.5.0)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Apr 21 17:44:53 2012 +0200 (2012-04-21) |
parents | 56c77b4c1490 |
children | 558e766e2c49 |
line diff
1.1 --- a/linux-api-headers/receipt Wed May 25 01:03:25 2011 +0200 1.2 +++ b/linux-api-headers/receipt Sat Apr 21 17:44:53 2012 +0200 1.3 @@ -1,14 +1,19 @@ 1.4 # SliTaz package receipt. 1.5 1.6 PACKAGE="linux-api-headers" 1.7 -VERSION="2.6.37" 1.8 +VERSION="3.2.14" 1.9 +KBASEVER="${VERSION:0:3}" 1.10 CATEGORY="development" 1.11 SHORT_DESC="Kernel headers sanitized for use in userspace." 1.12 MAINTAINER="devel@slitaz.org" 1.13 SOURCE="linux" 1.14 -TARBALL="$SOURCE-$VERSION.tar.bz2" 1.15 +TARBALL="$SOURCE-$KBASEVER.tar.xz" 1.16 WEB_SITE="http://www.kernel.org/" 1.17 -WGET_URL="http://www.eu.kernel.org/pub/linux/kernel/v${VERSION:0:3}/$TARBALL" 1.18 +WGET_URL="http://www.kernel.org/pub/linux/kernel/v3.0/$TARBALL" 1.19 + 1.20 +BUILD_DEPENDS="bash" 1.21 + 1.22 +[ "$KBASEVER" != "$VERSION" ] && PATCH="http://www.kernel.org/pub/linux/kernel/v3.0/patch-$VERSION.xz" 1.23 1.24 # Rules to compile & install the temporary toolchain. 1.25 cook_tmp_toolchain() 1.26 @@ -24,6 +29,16 @@ 1.27 compile_rules() 1.28 { 1.29 cd $src 1.30 + 1.31 + if [ "$KBASEVER" != "$VERSION" ]; then 1.32 + if [ -f $SOURCES_REPOSITORY/$(basename $PATCH) ]; then 1.33 + xzcat $SOURCES_REPOSITORY/$(basename $PATCH) | patch -Np1 1.34 + else 1.35 + wget $PATCH -O $SRC/$(basename $PATCH) 1.36 + xzcat $SRC/$(basename $PATCH) | patch -Np1 1.37 + fi 1.38 + fi 1.39 + 1.40 make mrproper && 1.41 make headers_check && 1.42 make INSTALL_HDR_PATH=$DESTDIR/usr headers_install 1.43 @@ -41,5 +56,5 @@ 1.44 post_install() 1.45 { 1.46 # Removed old linux-headers 1.47 - rm -rf $1/var/lib/tazpkg/installed/linux-headers 2>/dev/null 1.48 + rm -rf ${1}${INSTALLED}/linux-headers 2>/dev/null 1.49 }