wok diff linux-api-headers/receipt @ rev 7845

busybox-static: add chroot
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Dec 28 16:44:48 2010 +0100 (2010-12-28)
parents
children 0989070c1c4e
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/linux-api-headers/receipt	Tue Dec 28 16:44:48 2010 +0100
     1.3 @@ -0,0 +1,41 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="linux-api-headers"
     1.7 +VERSION="2.6.34"
     1.8 +CATEGORY="development"
     1.9 +SHORT_DESC="Kernel headers sanitized for use in userspace."
    1.10 +MAINTAINER="devel@slitaz.org"
    1.11 +SOURCE="linux"
    1.12 +TARBALL="$SOURCE-$VERSION.tar.bz2"
    1.13 +BUILD_DEPENDS="perl"
    1.14 +WEB_SITE="http://www.kernel.org/"
    1.15 +WGET_URL="http://www.eu.kernel.org/pub/linux/kernel/v${VERSION:0:3}/$TARBALL"
    1.16 +
    1.17 +# Rules to configure and make the package.
    1.18 +compile_rules()
    1.19 +{
    1.20 +	cd $src
    1.21 +
    1.22 +	# fix issues with transition of scsi.h from glibc
    1.23 +	patch -Np1 -i ../stuff/scsi.patch
    1.24 +
    1.25 +	make mrproper
    1.26 +	make headers_check
    1.27 +	make INSTALL_HDR_PATH=$PWD/_pkg/usr headers_install
    1.28 +}
    1.29 +
    1.30 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.31 +genpkg_rules()
    1.32 +{
    1.33 +	mkdir -p $fs/usr
    1.34 +	cp -a $_pkg/usr/include $fs/usr
    1.35 +
    1.36 +	rm -f $(find ${fs} -name .install -or -name ..install.cmd)
    1.37 +}
    1.38 +
    1.39 +# Post install commands for Tazpkg.
    1.40 +post_install()
    1.41 +{
    1.42 +	# Removed old linux-headers
    1.43 +	rm -rf $1/var/lib/tazpkg/installed/linux-headers 2>/dev/null
    1.44 +}