wok-6.x view linux-api-headers/receipt @ rev 12268

Up: linux-api-headers (3.2.14)
author Christophe Lincoln <pankso@slitaz.org>
date Thu Apr 12 15:19:10 2012 +0200 (2012-04-12)
parents 56c77b4c1490
children 558e766e2c49
line source
1 # SliTaz package receipt.
3 PACKAGE="linux-api-headers"
4 VERSION="3.2.14"
5 KBASEVER="${VERSION:0:3}"
6 CATEGORY="development"
7 SHORT_DESC="Kernel headers sanitized for use in userspace."
8 MAINTAINER="devel@slitaz.org"
9 SOURCE="linux"
10 TARBALL="$SOURCE-$KBASEVER.tar.xz"
11 WEB_SITE="http://www.kernel.org/"
12 WGET_URL="http://www.kernel.org/pub/linux/kernel/v3.0/$TARBALL"
14 BUILD_DEPENDS="bash"
16 [ "$KBASEVER" != "$VERSION" ] && PATCH="http://www.kernel.org/pub/linux/kernel/v3.0/patch-$VERSION.xz"
18 # Rules to compile & install the temporary toolchain.
19 cook_tmp_toolchain()
20 {
21 cd $src
22 make mrproper &&
23 make headers_check &&
24 make INSTALL_HDR_PATH=dest headers_install &&
25 cp -r dest/include/* /tools/include
26 }
28 # Rules to configure and make the package.
29 compile_rules()
30 {
31 cd $src
33 if [ "$KBASEVER" != "$VERSION" ]; then
34 if [ -f $SOURCES_REPOSITORY/$(basename $PATCH) ]; then
35 xzcat $SOURCES_REPOSITORY/$(basename $PATCH) | patch -Np1
36 else
37 wget $PATCH -O $SRC/$(basename $PATCH)
38 xzcat $SRC/$(basename $PATCH) | patch -Np1
39 fi
40 fi
42 make mrproper &&
43 make headers_check &&
44 make INSTALL_HDR_PATH=$DESTDIR/usr headers_install
45 }
47 # Rules to gen a SliTaz package suitable for Tazpkg.
48 genpkg_rules()
49 {
50 mkdir -p $fs/usr
51 cp -a $_pkg/usr/include $fs/usr
52 rm -f $(find ${fs} -name .install -or -name ..install.cmd)
53 }
55 # Post install commands for Tazpkg.
56 post_install()
57 {
58 # Removed old linux-headers
59 rm -rf ${1}${INSTALLED}/linux-headers 2>/dev/null
60 }