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

Up: uget to 1.6.2a.
author Christopher Rogers <slaxemulator@gmail.com>
date Mon Jan 31 23:45:17 2011 +0000 (2011-01-31)
parents fbe11f5b74e3
children 8273bd11046a
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
18 make mrproper &&
19 make headers_check &&
20 make INSTALL_HDR_PATH=dest headers_install &&
21 cp -r dest/include/* /tools/include
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 cd $src
29 make mrproper &&
30 make headers_check &&
31 make INSTALL_HDR_PATH=$DESTDIR/usr headers_install
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 mkdir -p $fs/usr
38 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 }