wok annotate linux-api-headers/receipt @ rev 12741

Up: ufraw (0.18) with Gimp plug-in and maintain package
author Christophe Lincoln <pankso@slitaz.org>
date Mon May 07 23:52:05 2012 +0200 (2012-05-07)
parents 56c77b4c1490
children 558e766e2c49
rev   line source
slaxemulator@6654 1 # SliTaz package receipt.
slaxemulator@6654 2
slaxemulator@6654 3 PACKAGE="linux-api-headers"
pankso@12268 4 VERSION="3.2.14"
pankso@12268 5 KBASEVER="${VERSION:0:3}"
slaxemulator@6654 6 CATEGORY="development"
slaxemulator@6654 7 SHORT_DESC="Kernel headers sanitized for use in userspace."
slaxemulator@6654 8 MAINTAINER="devel@slitaz.org"
slaxemulator@6654 9 SOURCE="linux"
pankso@12268 10 TARBALL="$SOURCE-$KBASEVER.tar.xz"
slaxemulator@6654 11 WEB_SITE="http://www.kernel.org/"
pankso@12268 12 WGET_URL="http://www.kernel.org/pub/linux/kernel/v3.0/$TARBALL"
pankso@12268 13
pankso@12268 14 BUILD_DEPENDS="bash"
pankso@12268 15
pankso@12268 16 [ "$KBASEVER" != "$VERSION" ] && PATCH="http://www.kernel.org/pub/linux/kernel/v3.0/patch-$VERSION.xz"
slaxemulator@6654 17
gokhlayeh@8196 18 # Rules to compile & install the temporary toolchain.
gokhlayeh@8196 19 cook_tmp_toolchain()
gokhlayeh@8196 20 {
gokhlayeh@8196 21 cd $src
gokhlayeh@8196 22 make mrproper &&
gokhlayeh@8196 23 make headers_check &&
gokhlayeh@8196 24 make INSTALL_HDR_PATH=dest headers_install &&
gokhlayeh@8196 25 cp -r dest/include/* /tools/include
gokhlayeh@8196 26 }
gokhlayeh@8196 27
slaxemulator@6654 28 # Rules to configure and make the package.
slaxemulator@6654 29 compile_rules()
slaxemulator@6654 30 {
slaxemulator@6654 31 cd $src
pankso@12268 32
pankso@12268 33 if [ "$KBASEVER" != "$VERSION" ]; then
pankso@12268 34 if [ -f $SOURCES_REPOSITORY/$(basename $PATCH) ]; then
pankso@12268 35 xzcat $SOURCES_REPOSITORY/$(basename $PATCH) | patch -Np1
pankso@12268 36 else
pankso@12268 37 wget $PATCH -O $SRC/$(basename $PATCH)
pankso@12268 38 xzcat $SRC/$(basename $PATCH) | patch -Np1
pankso@12268 39 fi
pankso@12268 40 fi
pankso@12268 41
gokhlayeh@8196 42 make mrproper &&
gokhlayeh@8196 43 make headers_check &&
gokhlayeh@8196 44 make INSTALL_HDR_PATH=$DESTDIR/usr headers_install
slaxemulator@6654 45 }
slaxemulator@6654 46
slaxemulator@6654 47 # Rules to gen a SliTaz package suitable for Tazpkg.
slaxemulator@6654 48 genpkg_rules()
slaxemulator@6654 49 {
slaxemulator@6654 50 mkdir -p $fs/usr
slaxemulator@6654 51 cp -a $_pkg/usr/include $fs/usr
slaxemulator@6654 52 rm -f $(find ${fs} -name .install -or -name ..install.cmd)
slaxemulator@6654 53 }
slaxemulator@6654 54
slaxemulator@6654 55 # Post install commands for Tazpkg.
slaxemulator@6654 56 post_install()
slaxemulator@6654 57 {
slaxemulator@6654 58 # Removed old linux-headers
pankso@12268 59 rm -rf ${1}${INSTALLED}/linux-headers 2>/dev/null
slaxemulator@6654 60 }