wok-6.x view linux-api-headers/receipt @ rev 14496
syslinux: add greek support
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri May 10 12:27:31 2013 +0200 (2013-05-10) |
parents | 25e3e67211d0 |
children | ad59999b3fce |
line source
1 # SliTaz package receipt.
3 PACKAGE="linux-api-headers"
4 VERSION="3.2.40"
5 KBASEVER="${VERSION:0:3}"
6 CATEGORY="development"
7 SHORT_DESC="Kernel headers sanitized for use in userspace."
8 MAINTAINER="devel@slitaz.org"
9 SOURCE="linux"
10 TARBALL="$SOURCE-$KBASEVER.tar.xz"
11 WEB_SITE="http://www.kernel.org/"
12 WGET_URL="http://www.kernel.org/pub/linux/kernel/v3.0/$TARBALL"
13 PROVIDE="linux-headers"
15 BUILD_DEPENDS="bash wget"
17 [ "$KBASEVER" != "$VERSION" ] &&
18 PATCH="$(dirname $WGET_URL)/patch-$VERSION.xz" &&
19 EXTRA_SOURCE_FILES="$(basename $PATCH)"
21 # Rules to compile & install the temporary toolchain.
22 cook_tmp_toolchain()
23 {
24 cd $src
25 make mrproper &&
26 make headers_check &&
27 make INSTALL_HDR_PATH=dest headers_install &&
28 cp -r dest/include/* /tools/include
29 }
31 # Rules to configure and make the package.
32 compile_rules()
33 {
34 cd $src
36 if [ "$KBASEVER" != "$VERSION" ]; then
37 [ -s $SRC/$(basename $PATCH) ] ||
38 wget --no-check-certificate $PATCH -O $SRC/$(basename $PATCH)
39 xzcat $SRC/$(basename $PATCH) | patch -Np1
40 touch done.patch-$VERSION
41 fi
43 make mrproper &&
44 make headers_check &&
45 make INSTALL_HDR_PATH=$DESTDIR/usr headers_install
46 }
48 # Rules to gen a SliTaz package suitable for Tazpkg.
49 genpkg_rules()
50 {
51 mkdir -p $fs/usr
52 cp -a $_pkg/usr/include $fs/usr
53 rm -f $(find ${fs} -name .install -or -name ..install.cmd)
54 }
56 # Post install commands for Tazpkg.
57 post_install()
58 {
59 # Removed old linux-headers
60 rm -rf ${1}${INSTALLED}/linux-headers 2>/dev/null
61 }