wok-current annotate linux-api-headers/receipt @ rev 8747
Up: tazwok-experimental 0.0.7.2
author | Antoine Bodin <gokhlayeh@slitaz.org> |
---|---|
date | Sun Feb 20 03:18:35 2011 +0100 (2011-02-20) |
parents | 0989070c1c4e |
children | 129bb5b11a7e |
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@8392 | 12 SRC_WANTED="$SOURCE" |
slaxemulator@6654 | 13 |
gokhlayeh@8196 | 14 # Rules to compile & install the temporary toolchain. |
gokhlayeh@8196 | 15 cook_tmp_toolchain() |
gokhlayeh@8196 | 16 { |
gokhlayeh@8196 | 17 cd $src |
gokhlayeh@8196 | 18 |
gokhlayeh@8196 | 19 make mrproper && |
gokhlayeh@8196 | 20 make headers_check && |
gokhlayeh@8196 | 21 make INSTALL_HDR_PATH=dest headers_install && |
gokhlayeh@8196 | 22 cp -r dest/include/* /tools/include |
gokhlayeh@8196 | 23 } |
gokhlayeh@8196 | 24 |
slaxemulator@6654 | 25 # Rules to configure and make the package. |
slaxemulator@6654 | 26 compile_rules() |
slaxemulator@6654 | 27 { |
slaxemulator@6654 | 28 cd $src |
slaxemulator@6654 | 29 |
gokhlayeh@8196 | 30 make mrproper && |
gokhlayeh@8196 | 31 make headers_check && |
gokhlayeh@8196 | 32 make INSTALL_HDR_PATH=$DESTDIR/usr headers_install |
slaxemulator@6654 | 33 } |
slaxemulator@6654 | 34 |
slaxemulator@6654 | 35 # Rules to gen a SliTaz package suitable for Tazpkg. |
slaxemulator@6654 | 36 genpkg_rules() |
slaxemulator@6654 | 37 { |
slaxemulator@6654 | 38 mkdir -p $fs/usr |
slaxemulator@6654 | 39 cp -a $_pkg/usr/include $fs/usr |
slaxemulator@6654 | 40 |
slaxemulator@6654 | 41 rm -f $(find ${fs} -name .install -or -name ..install.cmd) |
slaxemulator@6654 | 42 } |
slaxemulator@6654 | 43 |
slaxemulator@6654 | 44 # Post install commands for Tazpkg. |
slaxemulator@6654 | 45 post_install() |
slaxemulator@6654 | 46 { |
slaxemulator@6654 | 47 # Removed old linux-headers |
slaxemulator@6654 | 48 rm -rf $1/var/lib/tazpkg/installed/linux-headers 2>/dev/null |
slaxemulator@6654 | 49 } |