wok view linux-api-headers/receipt @ rev 7111

Fixed get-linux-source script again in linux-source (i hope). Fixed path for url file.
author Christopher Rogers <slaxemulator@gmail.com>
date Wed Nov 03 20:09:13 2010 +0000 (2010-11-03)
parents
children 0989070c1c4e
line source
1 # SliTaz package receipt.
3 PACKAGE="linux-api-headers"
4 VERSION="2.6.34"
5 CATEGORY="development"
6 SHORT_DESC="Kernel headers sanitized for use in userspace."
7 MAINTAINER="devel@slitaz.org"
8 SOURCE="linux"
9 TARBALL="$SOURCE-$VERSION.tar.bz2"
10 BUILD_DEPENDS="perl"
11 WEB_SITE="http://www.kernel.org/"
12 WGET_URL="http://www.eu.kernel.org/pub/linux/kernel/v${VERSION:0:3}/$TARBALL"
14 # Rules to configure and make the package.
15 compile_rules()
16 {
17 cd $src
19 # fix issues with transition of scsi.h from glibc
20 patch -Np1 -i ../stuff/scsi.patch
22 make mrproper
23 make headers_check
24 make INSTALL_HDR_PATH=$PWD/_pkg/usr headers_install
25 }
27 # Rules to gen a SliTaz package suitable for Tazpkg.
28 genpkg_rules()
29 {
30 mkdir -p $fs/usr
31 cp -a $_pkg/usr/include $fs/usr
33 rm -f $(find ${fs} -name .install -or -name ..install.cmd)
34 }
36 # Post install commands for Tazpkg.
37 post_install()
38 {
39 # Removed old linux-headers
40 rm -rf $1/var/lib/tazpkg/installed/linux-headers 2>/dev/null
41 }