wok-current view linux-api-headers/receipt @ rev 25792

Fix openbox menu, label keymap on lxpanel and add miss it translation for tazpkg
author Stanislas Leduc <shann@slitaz.org>
date Tue Oct 07 05:55:24 2025 +0000 (2 weeks ago)
parents d7c9e4ccdec8
children
line source
1 # SliTaz package receipt.
3 PACKAGE="linux-api-headers"
4 VERSION="5.10.238"
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"
15 HOST_ARCH="i486 x86_64"
17 BUILD_DEPENDS="bash rsync wget" # bootstrap x86_64 remove wget bdep
19 [ "$KBASEVER" != "$VERSION" ] &&
20 PATCH="$(dirname $WGET_URL)/patch-$VERSION.xz" &&
21 EXTRA_SOURCE_FILES="$(basename $PATCH)"
23 # What is the latest version available today?
24 current_version()
25 {
26 wget -O - $WEB_SITE 2> /dev/null | grep -A 1 longterm | \
27 sed '/strong/!d;s|.*<strong>||;s|</s.*||;q'
28 }
30 # Rules to compile & install the temporary toolchain.
31 cook_tmp_toolchain()
32 {
33 cd $src
34 make mrproper &&
35 make headers_check &&
36 make INSTALL_HDR_PATH=dest headers_install &&
37 cp -r dest/include/* /tools/include
38 }
40 # Rules to configure and make the package.
41 compile_rules()
42 {
43 cd $src
45 if [ "$KBASEVER" != "$VERSION" ]; then
46 [ -s $SRC/$(basename $PATCH) ] ||
47 wget --no-check-certificate $PATCH -O $SRC/$(basename $PATCH)
48 xzcat $SRC/$(basename $PATCH) | patch -Np1
49 touch done.patch-$VERSION
50 fi
52 make mrproper &&
53 make headers_check &&
54 make INSTALL_HDR_PATH=$DESTDIR/usr headers_install
55 }
57 # Rules to gen a SliTaz package suitable for Tazpkg.
58 genpkg_rules()
59 {
60 mkdir -p $fs/usr
61 cp -a $install/usr/include $fs/usr
62 rm -f $(find ${fs} -name .install -or -name ..install.cmd)
63 }
65 # Post install commands for Tazpkg.
66 post_install()
67 {
68 # Removed old linux-headers
69 rm -rf ${1}${INSTALLED}/linux-headers 2>/dev/null
70 }