wok-current view linux-api-headers/receipt @ rev 8557
imported patch get/libdaq
author | Antoine Bodin <gokhlayeh@slitaz.org> |
---|---|
date | Sun Feb 13 22:57:56 2011 +0100 (2011-02-13) |
parents | 0989070c1c4e |
children | 129bb5b11a7e |
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"
12 SRC_WANTED="$SOURCE"
14 # Rules to compile & install the temporary toolchain.
15 cook_tmp_toolchain()
16 {
17 cd $src
19 make mrproper &&
20 make headers_check &&
21 make INSTALL_HDR_PATH=dest headers_install &&
22 cp -r dest/include/* /tools/include
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 cd $src
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
41 rm -f $(find ${fs} -name .install -or -name ..install.cmd)
42 }
44 # Post install commands for Tazpkg.
45 post_install()
46 {
47 # Removed old linux-headers
48 rm -rf $1/var/lib/tazpkg/installed/linux-headers 2>/dev/null
49 }