wok-next rev 19569

Up linux-api-headers (4.9)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Thu Dec 22 00:25:33 2016 +0200 (2016-12-22)
parents 96871f3890f0
children 10e3347b5a0d
files linux-api-headers/receipt
line diff
     1.1 --- a/linux-api-headers/receipt	Wed Dec 21 23:21:13 2016 +0200
     1.2 +++ b/linux-api-headers/receipt	Thu Dec 22 00:25:33 2016 +0200
     1.3 @@ -1,8 +1,8 @@
     1.4  # SliTaz package receipt.
     1.5  
     1.6  PACKAGE="linux-api-headers"
     1.7 -VERSION="4.7.2"
     1.8 -#KBASEVER="${VERSION:0:3}"
     1.9 +VERSION="4.9"
    1.10 +KBASEVER="$(echo $VERSION | cut -d. -f1,2)"
    1.11  CATEGORY="development"
    1.12  SHORT_DESC="Kernel headers sanitized for use in userspace."
    1.13  MAINTAINER="devel@slitaz.org"
    1.14 @@ -10,37 +10,26 @@
    1.15  SOURCE="linux"
    1.16  WEB_SITE="https://www.kernel.org/"
    1.17  
    1.18 -TARBALL="$SOURCE-$VERSION.tar.xz"
    1.19 +TARBALL="$SOURCE-$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 libtinfo"
    1.24 +BUILD_DEPENDS="bash libtinfo perl"
    1.25  
    1.26 -#[ "$KBASEVER" != "$VERSION" ] &&
    1.27 -#PATCH="$(dirname $WGET_URL)/patch-$VERSION.xz" &&
    1.28 -#EXTRA_SOURCE_FILES="$(basename $PATCH)"
    1.29 -
    1.30 -# Rules to compile & install the temporary toolchain.
    1.31 -cook_tmp_toolchain()
    1.32 -{
    1.33 -	cd $src
    1.34 -	make mrproper &&
    1.35 -	make headers_check &&
    1.36 -	make INSTALL_HDR_PATH=dest headers_install &&
    1.37 -	cp -r dest/include/* /tools/include
    1.38 -}
    1.39 +if [ "$KBASEVER" != "$VERSION" ]; then
    1.40 +	PATCH="$(dirname $WGET_URL)/patch-$VERSION.xz"
    1.41 +	EXTRA_SOURCE_FILES="$(basename $PATCH)"
    1.42 +fi
    1.43  
    1.44  # Rules to configure and make the package.
    1.45  compile_rules()
    1.46  {
    1.47 -#	cd $src
    1.48 -#	
    1.49 -#	if [ "$KBASEVER" != "$VERSION" ]; then
    1.50 -#		[ -s $SRC/$(basename $PATCH) ] ||
    1.51 -#		wget --no-check-certificate $PATCH -O $SRC/$(basename $PATCH)
    1.52 -#		xzcat $SRC/$(basename $PATCH) | patch -Np1
    1.53 -#		touch done.patch-$VERSION
    1.54 -#	fi
    1.55 +	if [ "$KBASEVER" != "$VERSION" ]; then
    1.56 +		[ -s $SRC/$(basename $PATCH) ] ||
    1.57 +		wget --no-check-certificate $PATCH -O $SRC/$(basename $PATCH)
    1.58 +		xzcat $SRC/$(basename $PATCH) | patch -Np1
    1.59 +		touch done.patch-$VERSION
    1.60 +	fi
    1.61  
    1.62  	make mrproper &&
    1.63  	make headers_check &&
    1.64 @@ -52,12 +41,5 @@
    1.65  {
    1.66  	mkdir -p $fs/usr
    1.67  	cp -a $install/usr/include $fs/usr
    1.68 -	rm -f $(find ${fs} -name .install -or -name ..install.cmd)
    1.69 +	rm -f $(find $fs -name .install -or -name ..install.cmd)
    1.70  }
    1.71 -
    1.72 -# Post install commands for Tazpkg.
    1.73 -post_install()
    1.74 -{
    1.75 -	# Removed old linux-headers
    1.76 -	rm -rf ${1}${INSTALLED}/linux-headers 2>/dev/null
    1.77 -}