wok-current rev 12309

Add: linux-arm-api-headers (Part of ARM cross toolchain)
author Christophe Lincoln <pankso@slitaz.org>
date Tue Apr 17 12:33:55 2012 +0200 (2012-04-17)
parents 8e410d8c4dd2
children ed2198370ffb
files linux-arm-api-headers/receipt
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/linux-arm-api-headers/receipt	Tue Apr 17 12:33:55 2012 +0200
     1.3 @@ -0,0 +1,50 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="linux-arm-api-headers"
     1.7 +VERSION="3.2.14"
     1.8 +KBASEVER="${VERSION:0:3}"
     1.9 +CATEGORY="development"
    1.10 +SHORT_DESC="Kernel headers sanitized for use in userspace."
    1.11 +MAINTAINER="devel@slitaz.org"
    1.12 +SOURCE="linux"
    1.13 +TARBALL="$SOURCE-$KBASEVER.tar.xz"
    1.14 +WEB_SITE="http://www.kernel.org/"
    1.15 +WGET_URL="http://www.kernel.org/pub/linux/kernel/v3.0/$TARBALL"
    1.16 +
    1.17 +BUILD_DEPENDS="bash"
    1.18 +
    1.19 +[ "$KBASEVER" != "$VERSION" ] && PATCH="http://www.kernel.org/pub/linux/kernel/v3.0/patch-$VERSION.xz"
    1.20 +
    1.21 +# Rules to configure and make the package.
    1.22 +compile_rules()
    1.23 +{
    1.24 +	cd $src
    1.25 +	
    1.26 +	if [ "$KBASEVER" != "$VERSION" ]; then
    1.27 +		if [ -f $SOURCES_REPOSITORY/$(basename $PATCH) ]; then
    1.28 +			xzcat $SOURCES_REPOSITORY/$(basename $PATCH) | patch -Np1
    1.29 +		else
    1.30 +			wget $PATCH -O $SRC/$(basename $PATCH)
    1.31 +			xzcat $SRC/$(basename $PATCH) | patch -Np1
    1.32 +		fi
    1.33 +	fi
    1.34 +
    1.35 +	make mrproper &&
    1.36 +	make ARCH=arm headers_check &&
    1.37 +	make ARCH=arm INSTALL_HDR_PATH=$DESTDIR/usr headers_install
    1.38 +}
    1.39 +
    1.40 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.41 +genpkg_rules()
    1.42 +{
    1.43 +	mkdir -p $fs/usr
    1.44 +	cp -a $_pkg/usr/include $fs/usr
    1.45 +	rm -f $(find ${fs} -name .install -or -name ..install.cmd)
    1.46 +}
    1.47 +
    1.48 +# Post install commands for Tazpkg.
    1.49 +post_install()
    1.50 +{
    1.51 +	# Removed old linux-headers
    1.52 +	rm -rf ${1}${INSTALLED}/linux-headers 2>/dev/null
    1.53 +}