wok-4.x view linux-api-headers/receipt @ rev 12466

New toolchain GCC 4.9.2, Glibc 2.19, Binutils 2.23.1
author Stanislas Leduc <shann@slitaz.org>
date Wed Nov 09 15:12:00 2022 +0000 (2022-11-09)
parents 56c77b4c1490
children
line source
1 # SliTaz package receipt.
3 PACKAGE="linux-api-headers"
4 VERSION="2.6.37"
5 CATEGORY="development"
6 SHORT_DESC="Kernel headers sanitized for use in userspace."
7 MAINTAINER="devel@slitaz.org"
8 SOURCE="linux"
9 TARBALL="$SOURCE-$VERSION.tar.bz2"
10 WEB_SITE="http://www.kernel.org/"
11 WGET_URL="http://www.eu.kernel.org/pub/linux/kernel/v${VERSION:0:3}/$TARBALL"
13 # Rules to compile & install the temporary toolchain.
14 cook_tmp_toolchain()
15 {
16 cd $src
17 make mrproper &&
18 make headers_check &&
19 make INSTALL_HDR_PATH=dest headers_install &&
20 cp -r dest/include/* /tools/include
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 cd $src
28 patch -p1 < $stuff/header-type-missing.patch
30 make mrproper &&
31 make headers_check &&
32 make INSTALL_HDR_PATH=$DESTDIR/usr headers_install
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
36 genpkg_rules()
37 {
38 mkdir -p $fs/usr
39 cp -a $_pkg/usr/include $fs/usr
40 rm -f $(find ${fs} -name .install -or -name ..install.cmd)
41 }
43 # Post install commands for Tazpkg.
44 post_install()
45 {
46 # Removed old linux-headers
47 rm -rf $1/var/lib/tazpkg/installed/linux-headers 2>/dev/null
48 }