wok-current view linux-api-headers/receipt @ rev 25697
Up apache (CVE-2023-38709, CVE-2024-24795, CVE-2024-27316), up libarchive, qemu, add amdgpu/touchpad support and clean modules.list, up website for repology
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Tue Apr 16 17:00:21 2024 +0000 (7 months ago) |
parents | db14014acdba |
children | b24b6ee1d4d2 |
line source
1 # SliTaz package receipt.
3 PACKAGE="linux-api-headers"
4 VERSION="5.10.215"
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/v${KBASEVER%.*}.x/$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 }