wok view linux-libre-api-headers/receipt @ rev 11438

libunique: patch build (thanks godane)
author Antoine Bodin <gokhlayeh@slitaz.org>
date Fri Dec 16 15:42:01 2011 +0100 (2011-12-16)
parents 903c03d31ebf
children 03a6791abff6
line source
1 # SliTaz package receipt.
3 PACKAGE="linux-libre-api-headers"
4 VERSION="2.6.37-libre"
5 CATEGORY="development"
6 SHORT_DESC="Kernel headers sanitized for use in userspace."
7 MAINTAINER="gokhlayeh@slitaz.org"
8 PROVIDE="linux-api-headers"
9 SOURCE="linux"
10 TARBALL="$SOURCE-$VERSION.tar.bz2"
11 WEB_SITE="http://www.fsfla.org/svnwiki/selibre/linux-libre/"
12 WGET_URL="http://www.fsfla.org/svnwiki/selibre/linux-libre/download/releases/$VERSION/$TARBALL"
14 # Rules to compile & install the temporary toolchain.
15 cook_tmp_toolchain()
16 {
17 cd $src
18 make mrproper &&
19 make headers_check &&
20 make INSTALL_HDR_PATH=dest headers_install &&
21 cp -r dest/include/* /tools/include
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 cd $src
28 make mrproper &&
29 make headers_check &&
30 make INSTALL_HDR_PATH=$DESTDIR/usr headers_install
31 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 mkdir -p $fs/usr
37 cp -a $_pkg/usr/include $fs/usr
38 rm -f $(find ${fs} -name .install -or -name ..install.cmd)
39 }
41 # Post install commands for Tazpkg.
42 post_install()
43 {
44 # Removed old linux-libre-headers
45 rm -rf $1/var/lib/tazpkg/installed/linux-libre-headers 2>/dev/null
46 }