wok-6.x diff linux-arm-api-headers/receipt @ rev 12614
xfmpc: update bdeps
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Apr 29 09:52:13 2012 +0200 (2012-04-29) |
parents | |
children | 3f1efbe56db8 |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/linux-arm-api-headers/receipt Sun Apr 29 09:52:13 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 +}