wok-6.x annotate linux-api-headers/receipt @ rev 14283

Add perl-fuse
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Apr 06 15:49:36 2013 +0200 (2013-04-06)
parents 416fab3c90c0
children a62a3bf42fb0
rev   line source
slaxemulator@6654 1 # SliTaz package receipt.
slaxemulator@6654 2
slaxemulator@6654 3 PACKAGE="linux-api-headers"
pascal@14175 4 VERSION="3.2.40"
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"
pascal@12841 13 PROVIDE="linux-headers"
pankso@12268 14
pascal@14181 15 BUILD_DEPENDS="bash wget"
pankso@12268 16
pankso@12268 17 [ "$KBASEVER" != "$VERSION" ] && PATCH="http://www.kernel.org/pub/linux/kernel/v3.0/patch-$VERSION.xz"
slaxemulator@6654 18
gokhlayeh@8196 19 # Rules to compile & install the temporary toolchain.
gokhlayeh@8196 20 cook_tmp_toolchain()
gokhlayeh@8196 21 {
gokhlayeh@8196 22 cd $src
gokhlayeh@8196 23 make mrproper &&
gokhlayeh@8196 24 make headers_check &&
gokhlayeh@8196 25 make INSTALL_HDR_PATH=dest headers_install &&
gokhlayeh@8196 26 cp -r dest/include/* /tools/include
gokhlayeh@8196 27 }
gokhlayeh@8196 28
slaxemulator@6654 29 # Rules to configure and make the package.
slaxemulator@6654 30 compile_rules()
slaxemulator@6654 31 {
slaxemulator@6654 32 cd $src
pankso@12268 33
pankso@12268 34 if [ "$KBASEVER" != "$VERSION" ]; then
pascal@14181 35 [ -s $SRC/$(basename $PATCH) ] ||
pascal@14181 36 wget --no-check-certificate $PATCH -O $SRC/$(basename $PATCH)
pascal@14181 37 xzcat $SRC/$(basename $PATCH) | patch -Np1
pascal@14181 38 touch done.patch-$VERSION
pankso@12268 39 fi
pankso@12268 40
gokhlayeh@8196 41 make mrproper &&
gokhlayeh@8196 42 make headers_check &&
gokhlayeh@8196 43 make INSTALL_HDR_PATH=$DESTDIR/usr headers_install
slaxemulator@6654 44 }
slaxemulator@6654 45
slaxemulator@6654 46 # Rules to gen a SliTaz package suitable for Tazpkg.
slaxemulator@6654 47 genpkg_rules()
slaxemulator@6654 48 {
slaxemulator@6654 49 mkdir -p $fs/usr
slaxemulator@6654 50 cp -a $_pkg/usr/include $fs/usr
slaxemulator@6654 51 rm -f $(find ${fs} -name .install -or -name ..install.cmd)
slaxemulator@6654 52 }
slaxemulator@6654 53
slaxemulator@6654 54 # Post install commands for Tazpkg.
slaxemulator@6654 55 post_install()
slaxemulator@6654 56 {
slaxemulator@6654 57 # Removed old linux-headers
pankso@12268 58 rm -rf ${1}${INSTALLED}/linux-headers 2>/dev/null
slaxemulator@6654 59 }