wok annotate linux-api-headers/receipt @ rev 12115

Fix usb-modeswitch-data build
author Christophe Lincoln <pankso@slitaz.org>
date Tue Mar 13 09:31:10 2012 +0100 (2012-03-13)
parents 129bb5b11a7e
children 97e8e0e4f878
rev   line source
slaxemulator@6654 1 # SliTaz package receipt.
slaxemulator@6654 2
slaxemulator@6654 3 PACKAGE="linux-api-headers"
gokhlayeh@8196 4 VERSION="2.6.37"
slaxemulator@6654 5 CATEGORY="development"
slaxemulator@6654 6 SHORT_DESC="Kernel headers sanitized for use in userspace."
slaxemulator@6654 7 MAINTAINER="devel@slitaz.org"
slaxemulator@6654 8 SOURCE="linux"
slaxemulator@6654 9 TARBALL="$SOURCE-$VERSION.tar.bz2"
slaxemulator@6654 10 WEB_SITE="http://www.kernel.org/"
slaxemulator@6654 11 WGET_URL="http://www.eu.kernel.org/pub/linux/kernel/v${VERSION:0:3}/$TARBALL"
slaxemulator@6654 12
gokhlayeh@8196 13 # Rules to compile & install the temporary toolchain.
gokhlayeh@8196 14 cook_tmp_toolchain()
gokhlayeh@8196 15 {
gokhlayeh@8196 16 cd $src
gokhlayeh@8196 17 make mrproper &&
gokhlayeh@8196 18 make headers_check &&
gokhlayeh@8196 19 make INSTALL_HDR_PATH=dest headers_install &&
gokhlayeh@8196 20 cp -r dest/include/* /tools/include
gokhlayeh@8196 21 }
gokhlayeh@8196 22
slaxemulator@6654 23 # Rules to configure and make the package.
slaxemulator@6654 24 compile_rules()
slaxemulator@6654 25 {
slaxemulator@6654 26 cd $src
gokhlayeh@8196 27 make mrproper &&
gokhlayeh@8196 28 make headers_check &&
gokhlayeh@8196 29 make INSTALL_HDR_PATH=$DESTDIR/usr headers_install
slaxemulator@6654 30 }
slaxemulator@6654 31
slaxemulator@6654 32 # Rules to gen a SliTaz package suitable for Tazpkg.
slaxemulator@6654 33 genpkg_rules()
slaxemulator@6654 34 {
slaxemulator@6654 35 mkdir -p $fs/usr
slaxemulator@6654 36 cp -a $_pkg/usr/include $fs/usr
slaxemulator@6654 37 rm -f $(find ${fs} -name .install -or -name ..install.cmd)
slaxemulator@6654 38 }
slaxemulator@6654 39
slaxemulator@6654 40 # Post install commands for Tazpkg.
slaxemulator@6654 41 post_install()
slaxemulator@6654 42 {
slaxemulator@6654 43 # Removed old linux-headers
slaxemulator@6654 44 rm -rf $1/var/lib/tazpkg/installed/linux-headers 2>/dev/null
slaxemulator@6654 45 }