wok-6.x view linux-api-headers/receipt @ rev 14283
Add perl-fuse
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Apr 06 15:49:36 2013 +0200 (2013-04-06) |
parents | 416fab3c90c0 |
children | a62a3bf42fb0 |
line source
1 # SliTaz package receipt.
3 PACKAGE="linux-api-headers"
4 VERSION="3.2.40"
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 wget"
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 [ -s $SRC/$(basename $PATCH) ] ||
36 wget --no-check-certificate $PATCH -O $SRC/$(basename $PATCH)
37 xzcat $SRC/$(basename $PATCH) | patch -Np1
38 touch done.patch-$VERSION
39 fi
41 make mrproper &&
42 make headers_check &&
43 make INSTALL_HDR_PATH=$DESTDIR/usr headers_install
44 }
46 # Rules to gen a SliTaz package suitable for Tazpkg.
47 genpkg_rules()
48 {
49 mkdir -p $fs/usr
50 cp -a $_pkg/usr/include $fs/usr
51 rm -f $(find ${fs} -name .install -or -name ..install.cmd)
52 }
54 # Post install commands for Tazpkg.
55 post_install()
56 {
57 # Removed old linux-headers
58 rm -rf ${1}${INSTALLED}/linux-headers 2>/dev/null
59 }