wok-next diff linux-api-headers/receipt @ rev 19595

Up linux (4.9.4)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sat Jan 21 17:27:31 2017 +0200 (2017-01-21)
parents 119e586fb823
children 9ec6f2ed49e9
line diff
     1.1 --- a/linux-api-headers/receipt	Mon Jan 02 07:42:47 2017 +0200
     1.2 +++ b/linux-api-headers/receipt	Sat Jan 21 17:27:31 2017 +0200
     1.3 @@ -1,20 +1,20 @@
     1.4  # SliTaz package receipt.
     1.5  
     1.6  PACKAGE="linux-api-headers"
     1.7 -VERSION="4.9.0"
     1.8 -KBASEVER="$(echo $VERSION | cut -d. -f1,2)"
     1.9 +VERSION="4.9.4"
    1.10 +KBASEVER="4.9"
    1.11  CATEGORY="development"
    1.12  SHORT_DESC="Kernel headers sanitized for use in userspace."
    1.13  MAINTAINER="devel@slitaz.org"
    1.14  LICENSE="GPL2"
    1.15 -SOURCE="linux"
    1.16  WEB_SITE="https://www.kernel.org/"
    1.17  
    1.18 -TARBALL="$SOURCE-$KBASEVER.tar.xz"
    1.19 +TARBALL="linux-$KBASEVER.tar.xz"
    1.20  WGET_URL="https://www.kernel.org/pub/linux/kernel/v4.x/$TARBALL"
    1.21  
    1.22  PROVIDE="linux-headers linux64-api-headers linux64-headers"
    1.23 -BUILD_DEPENDS="bash perl"
    1.24 +BUILD_DEPENDS="bash perl patch"
    1.25 +SIBLINGS="linux linux-dev linux-man"
    1.26  
    1.27  if [ "$KBASEVER" != "${VERSION%.0}" ]; then
    1.28  	PATCH="$(dirname $WGET_URL)/patch-$VERSION.xz"
    1.29 @@ -24,13 +24,19 @@
    1.30  # Rules to configure and make the package.
    1.31  compile_rules()
    1.32  {
    1.33 +	# Update sources to the $VERSION using base sources ($KBASEVER) and patch
    1.34  	if [ "$KBASEVER" != "${VERSION%.0}" ]; then
    1.35 -		[ -s $SRC/$(basename $PATCH) ] ||
    1.36 -		wget --no-check-certificate $PATCH -O $SRC/$(basename $PATCH)
    1.37 -		xzcat $SRC/$(basename $PATCH) | patch -Np1
    1.38 -		touch done.patch-$VERSION
    1.39 +		[ -s $SRC/$(basename $PATCH) ] || wget $PATCH -O $SRC/$(basename $PATCH)
    1.40 +		# don't patch twice for `cook $PACKAGE --continue`
    1.41 +		if [ ! -f "done.patch-$VERSION" ]; then
    1.42 +			xzcat $SRC/$(basename $PATCH) | patch -Np1
    1.43 +			touch done.patch-$VERSION
    1.44 +		fi
    1.45  	fi
    1.46  
    1.47 +	# Get and apply Aufs patches
    1.48 +	. $WOK/linux/stuff/tools/aufs-patches
    1.49 +
    1.50  	make mrproper &&
    1.51  	make headers_check &&
    1.52  	make INSTALL_HDR_PATH=$DESTDIR/usr headers_install
    1.53 @@ -41,5 +47,5 @@
    1.54  {
    1.55  	mkdir -p $fs/usr
    1.56  	cp -a $install/usr/include $fs/usr
    1.57 -	rm -f $(find $fs -name .install -or -name ..install.cmd)
    1.58 +	find $fs -name .install -or -name ..install.cmd -delete
    1.59  }