wok-6.x view linux-api-headers/receipt @ rev 13568
Add: python-prettytable
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sat Nov 03 14:23:57 2012 +0100 (2012-11-03) |
parents | 97e8e0e4f878 |
children | 416fab3c90c0 |
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"
13 PROVIDE="linux-headers"
15 BUILD_DEPENDS="bash"
17 [ "$KBASEVER" != "$VERSION" ] && PATCH="http://www.kernel.org/pub/linux/kernel/v3.0/patch-$VERSION.xz"
19 # Rules to compile & install the temporary toolchain.
20 cook_tmp_toolchain()
21 {
22 cd $src
23 make mrproper &&
24 make headers_check &&
25 make INSTALL_HDR_PATH=dest headers_install &&
26 cp -r dest/include/* /tools/include
27 }
29 # Rules to configure and make the package.
30 compile_rules()
31 {
32 cd $src
34 if [ "$KBASEVER" != "$VERSION" ]; then
35 if [ -f $SOURCES_REPOSITORY/$(basename $PATCH) ]; then
36 xzcat $SOURCES_REPOSITORY/$(basename $PATCH) | patch -Np1
37 else
38 wget $PATCH -O $SRC/$(basename $PATCH)
39 xzcat $SRC/$(basename $PATCH) | patch -Np1
40 fi
41 fi
43 make mrproper &&
44 make headers_check &&
45 make INSTALL_HDR_PATH=$DESTDIR/usr headers_install
46 }
48 # Rules to gen a SliTaz package suitable for Tazpkg.
49 genpkg_rules()
50 {
51 mkdir -p $fs/usr
52 cp -a $_pkg/usr/include $fs/usr
53 rm -f $(find ${fs} -name .install -or -name ..install.cmd)
54 }
56 # Post install commands for Tazpkg.
57 post_install()
58 {
59 # Removed old linux-headers
60 rm -rf ${1}${INSTALLED}/linux-headers 2>/dev/null
61 }