wok-current view linux-api-headers/receipt @ rev 25449
BootProg/boot32.asm: floppy chs support
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Sep 12 16:35:46 2022 +0000 (23 months ago) |
parents | 4ea0eb3f4881 |
children | a23978bfa665 |
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 # What is the latest version available today?
23 current_version()
24 {
25 wget -O - $WEB_SITE 2> /dev/null | grep -A 1 longterm | \
26 sed '/strong/!d;s|.*<strong>||;s|</s.*||;q'
27 }
29 # Rules to compile & install the temporary toolchain.
30 cook_tmp_toolchain()
31 {
32 cd $src
33 make mrproper &&
34 make headers_check &&
35 make INSTALL_HDR_PATH=dest headers_install &&
36 cp -r dest/include/* /tools/include
37 }
39 # Rules to configure and make the package.
40 compile_rules()
41 {
42 cd $src
44 if [ "$KBASEVER" != "$VERSION" ]; then
45 [ -s $SRC/$(basename $PATCH) ] ||
46 wget --no-check-certificate $PATCH -O $SRC/$(basename $PATCH)
47 xzcat $SRC/$(basename $PATCH) | patch -Np1
48 touch done.patch-$VERSION
49 fi
51 make mrproper &&
52 make headers_check &&
53 make INSTALL_HDR_PATH=$DESTDIR/usr headers_install
54 }
56 # Rules to gen a SliTaz package suitable for Tazpkg.
57 genpkg_rules()
58 {
59 mkdir -p $fs/usr
60 cp -a $install/usr/include $fs/usr
61 rm -f $(find ${fs} -name .install -or -name ..install.cmd)
62 }
64 # Post install commands for Tazpkg.
65 post_install()
66 {
67 # Removed old linux-headers
68 rm -rf ${1}${INSTALLED}/linux-headers 2>/dev/null
69 }