wok annotate linux-arm-api-headers/receipt @ 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
children 3f1efbe56db8
rev   line source
pankso@12309 1 # SliTaz package receipt.
pankso@12309 2
pankso@12309 3 PACKAGE="linux-arm-api-headers"
pankso@12309 4 VERSION="3.2.14"
pankso@12309 5 KBASEVER="${VERSION:0:3}"
pankso@12309 6 CATEGORY="development"
pankso@12309 7 SHORT_DESC="Kernel headers sanitized for use in userspace."
pankso@12309 8 MAINTAINER="devel@slitaz.org"
pankso@12309 9 SOURCE="linux"
pankso@12309 10 TARBALL="$SOURCE-$KBASEVER.tar.xz"
pankso@12309 11 WEB_SITE="http://www.kernel.org/"
pankso@12309 12 WGET_URL="http://www.kernel.org/pub/linux/kernel/v3.0/$TARBALL"
pankso@12309 13
pankso@12309 14 BUILD_DEPENDS="bash"
pankso@12309 15
pankso@12309 16 [ "$KBASEVER" != "$VERSION" ] && PATCH="http://www.kernel.org/pub/linux/kernel/v3.0/patch-$VERSION.xz"
pankso@12309 17
pankso@12309 18 # Rules to configure and make the package.
pankso@12309 19 compile_rules()
pankso@12309 20 {
pankso@12309 21 cd $src
pankso@12309 22
pankso@12309 23 if [ "$KBASEVER" != "$VERSION" ]; then
pankso@12309 24 if [ -f $SOURCES_REPOSITORY/$(basename $PATCH) ]; then
pankso@12309 25 xzcat $SOURCES_REPOSITORY/$(basename $PATCH) | patch -Np1
pankso@12309 26 else
pankso@12309 27 wget $PATCH -O $SRC/$(basename $PATCH)
pankso@12309 28 xzcat $SRC/$(basename $PATCH) | patch -Np1
pankso@12309 29 fi
pankso@12309 30 fi
pankso@12309 31
pankso@12309 32 make mrproper &&
pankso@12309 33 make ARCH=arm headers_check &&
pankso@12309 34 make ARCH=arm INSTALL_HDR_PATH=$DESTDIR/usr headers_install
pankso@12309 35 }
pankso@12309 36
pankso@12309 37 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@12309 38 genpkg_rules()
pankso@12309 39 {
pankso@12309 40 mkdir -p $fs/usr
pankso@12309 41 cp -a $_pkg/usr/include $fs/usr
pankso@12309 42 rm -f $(find ${fs} -name .install -or -name ..install.cmd)
pankso@12309 43 }
pankso@12309 44
pankso@12309 45 # Post install commands for Tazpkg.
pankso@12309 46 post_install()
pankso@12309 47 {
pankso@12309 48 # Removed old linux-headers
pankso@12309 49 rm -rf ${1}${INSTALLED}/linux-headers 2>/dev/null
pankso@12309 50 }