wok diff linux-libre-api-headers/receipt @ rev 9257

Add: linux-libre 2.6.37-libre (part 1)
author Antoine Bodin <gokhlayeh@slitaz.org>
date Tue Mar 15 03:23:44 2011 +0100 (2011-03-15)
parents
children 67cd1106a33b
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/linux-libre-api-headers/receipt	Tue Mar 15 03:23:44 2011 +0100
     1.3 @@ -0,0 +1,49 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="linux-libre-api-headers"
     1.7 +VERSION="2.6.37-libre"
     1.8 +CATEGORY="development"
     1.9 +SHORT_DESC="Kernel headers sanitized for use in userspace."
    1.10 +MAINTAINER="gokhlayeh@slitaz.org"
    1.11 +PROVIDE="linux-api-headers"
    1.12 +SOURCE="linux-libre"
    1.13 +TARBALL="linux-$VERSION.tar.bz2"
    1.14 +WEB_SITE="http://www.fsfla.org/svnwiki/selibre/linux-libre/"
    1.15 +WGET_URL="http://www.fsfla.org/svnwiki/selibre/linux-libre/download/releases/$VERSION/$TARBALL"
    1.16 +
    1.17 +# Rules to compile & install the temporary toolchain.
    1.18 +cook_tmp_toolchain()
    1.19 +{
    1.20 +	cd $src
    1.21 +
    1.22 +	make mrproper &&
    1.23 +	make headers_check &&
    1.24 +	make INSTALL_HDR_PATH=dest headers_install &&
    1.25 +	cp -r dest/include/* /tools/include
    1.26 +}
    1.27 +
    1.28 +# Rules to configure and make the package.
    1.29 +compile_rules()
    1.30 +{
    1.31 +	cd $src
    1.32 +
    1.33 +	make mrproper &&
    1.34 +	make headers_check &&
    1.35 +	make INSTALL_HDR_PATH=$DESTDIR/usr headers_install
    1.36 +}
    1.37 +
    1.38 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.39 +genpkg_rules()
    1.40 +{
    1.41 +	mkdir -p $fs/usr
    1.42 +	cp -a $_pkg/usr/include $fs/usr
    1.43 +
    1.44 +	rm -f $(find ${fs} -name .install -or -name ..install.cmd)
    1.45 +}
    1.46 +
    1.47 +# Post install commands for Tazpkg.
    1.48 +post_install()
    1.49 +{
    1.50 +	# Removed old linux-libre-headers
    1.51 +	rm -rf $1/var/lib/tazpkg/installed/linux-libre-headers 2>/dev/null
    1.52 +}