wok-next view linux-api-headers/receipt @ rev 19583

Up: cookutils, tazpkg, aufs, kmod, lguest, linux, linux64.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Mon Jan 02 07:42:47 2017 +0200 (2017-01-02)
parents e9bd4eca24b2
children 960a052d15d3
line source
1 # SliTaz package receipt.
3 PACKAGE="linux-api-headers"
4 VERSION="4.9.0"
5 KBASEVER="$(echo $VERSION | cut -d. -f1,2)"
6 CATEGORY="development"
7 SHORT_DESC="Kernel headers sanitized for use in userspace."
8 MAINTAINER="devel@slitaz.org"
9 LICENSE="GPL2"
10 SOURCE="linux"
11 WEB_SITE="https://www.kernel.org/"
13 TARBALL="$SOURCE-$KBASEVER.tar.xz"
14 WGET_URL="https://www.kernel.org/pub/linux/kernel/v4.x/$TARBALL"
16 PROVIDE="linux-headers linux64-api-headers linux64-headers"
17 BUILD_DEPENDS="bash perl"
19 if [ "$KBASEVER" != "${VERSION%.0}" ]; then
20 PATCH="$(dirname $WGET_URL)/patch-$VERSION.xz"
21 EXTRA_SOURCE_FILES="$(basename $PATCH)"
22 fi
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 if [ "$KBASEVER" != "${VERSION%.0}" ]; then
28 [ -s $SRC/$(basename $PATCH) ] ||
29 wget --no-check-certificate $PATCH -O $SRC/$(basename $PATCH)
30 xzcat $SRC/$(basename $PATCH) | patch -Np1
31 touch done.patch-$VERSION
32 fi
34 make mrproper &&
35 make headers_check &&
36 make INSTALL_HDR_PATH=$DESTDIR/usr headers_install
37 }
39 # Rules to gen a SliTaz package suitable for Tazpkg.
40 genpkg_rules()
41 {
42 mkdir -p $fs/usr
43 cp -a $install/usr/include $fs/usr
44 rm -f $(find $fs -name .install -or -name ..install.cmd)
45 }