wok-6.x view linux-api-headers/receipt @ rev 17661
Fix: reduce transmission* binary size
author | Alexander Medvedev <devl547@gmail.com> |
---|---|
date | Sun Feb 15 11:48:29 2015 +0000 (2015-02-15) |
parents | 051931e905b0 |
children | 08cf996a2307 |
line source
1 # SliTaz package receipt.
3 PACKAGE="linux-api-headers"
4 VERSION="3.2.53"
5 KBASEVER="${VERSION:0:3}"
6 CATEGORY="development"
7 SHORT_DESC="Kernel headers sanitized for use in userspace."
8 MAINTAINER="devel@slitaz.org"
9 LICENSE="GPL2"
10 SOURCE="linux"
11 TARBALL="$SOURCE-$KBASEVER.tar.xz"
12 WEB_SITE="http://www.kernel.org/"
13 WGET_URL="http://www.kernel.org/pub/linux/kernel/v3.0/$TARBALL"
14 PROVIDE="linux-headers"
16 BUILD_DEPENDS="bash wget"
18 [ "$KBASEVER" != "$VERSION" ] &&
19 PATCH="$(dirname $WGET_URL)/patch-$VERSION.xz" &&
20 EXTRA_SOURCE_FILES="$(basename $PATCH)"
22 # Rules to compile & install the temporary toolchain.
23 cook_tmp_toolchain()
24 {
25 cd $src
26 make mrproper &&
27 make headers_check &&
28 make INSTALL_HDR_PATH=dest headers_install &&
29 cp -r dest/include/* /tools/include
30 }
32 # Rules to configure and make the package.
33 compile_rules()
34 {
35 cd $src
37 if [ "$KBASEVER" != "$VERSION" ]; then
38 [ -s $SRC/$(basename $PATCH) ] ||
39 wget --no-check-certificate $PATCH -O $SRC/$(basename $PATCH)
40 xzcat $SRC/$(basename $PATCH) | patch -Np1
41 touch done.patch-$VERSION
42 fi
44 make mrproper &&
45 make headers_check &&
46 make INSTALL_HDR_PATH=$DESTDIR/usr headers_install
47 }
49 # Rules to gen a SliTaz package suitable for Tazpkg.
50 genpkg_rules()
51 {
52 mkdir -p $fs/usr
53 cp -a $install/usr/include $fs/usr
54 rm -f $(find ${fs} -name .install -or -name ..install.cmd)
55 }
57 # Post install commands for Tazpkg.
58 post_install()
59 {
60 # Removed old linux-headers
61 rm -rf ${1}${INSTALLED}/linux-headers 2>/dev/null
62 }