wok view linux-api-headers/receipt @ rev 23205
updated musl-libc and musl-libc-dev (1.1.24 -> 1.2.0)
author | Hans-G?nter Theisgen |
---|---|
date | Sat Mar 21 10:14:00 2020 +0100 (2020-03-21) |
parents | 9bef8f62029f |
children | 34e801e0eb52 |
line source
1 # SliTaz package receipt.
3 PACKAGE="linux-api-headers"
4 VERSION="3.16.55"
5 KBASEVER="${VERSION%.*}"
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="https://www.kernel.org/"
13 WGET_URL="https://www.kernel.org/pub/linux/kernel/v3.0/$TARBALL"
14 PROVIDE="linux-headers linux64-api-headers linux64-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 }