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

Initial commit to wok-next (SliTaz v.6 now): update 61 packages (about) according to LFS 7.10
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Dec 16 01:16:56 2016 +0200 (2016-12-16)
parents 58fd2812d1bf
children a6984f082794
line source
1 # SliTaz package receipt.
3 PACKAGE="linux-api-headers"
4 VERSION="4.7.2"
5 #KBASEVER="${VERSION:0:3}"
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-$VERSION.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 libtinfo"
19 #[ "$KBASEVER" != "$VERSION" ] &&
20 #PATCH="$(dirname $WGET_URL)/patch-$VERSION.xz" &&
21 #EXTRA_SOURCE_FILES="$(basename $PATCH)"
23 # Rules to compile & install the temporary toolchain.
24 cook_tmp_toolchain()
25 {
26 cd $src
27 make mrproper &&
28 make headers_check &&
29 make INSTALL_HDR_PATH=dest headers_install &&
30 cp -r dest/include/* /tools/include
31 }
33 # Rules to configure and make the package.
34 compile_rules()
35 {
36 # cd $src
37 #
38 # if [ "$KBASEVER" != "$VERSION" ]; then
39 # [ -s $SRC/$(basename $PATCH) ] ||
40 # wget --no-check-certificate $PATCH -O $SRC/$(basename $PATCH)
41 # xzcat $SRC/$(basename $PATCH) | patch -Np1
42 # touch done.patch-$VERSION
43 # fi
45 make mrproper &&
46 make headers_check &&
47 make INSTALL_HDR_PATH=$DESTDIR/usr headers_install
48 }
50 # Rules to gen a SliTaz package suitable for Tazpkg.
51 genpkg_rules()
52 {
53 mkdir -p $fs/usr
54 cp -a $install/usr/include $fs/usr
55 rm -f $(find ${fs} -name .install -or -name ..install.cmd)
56 }
58 # Post install commands for Tazpkg.
59 post_install()
60 {
61 # Removed old linux-headers
62 rm -rf ${1}${INSTALLED}/linux-headers 2>/dev/null
63 }