wok-current annotate 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 |
| rev | line source |
|---|---|
| slaxemulator@6654 | 1 # SliTaz package receipt. |
| slaxemulator@6654 | 2 |
| slaxemulator@6654 | 3 PACKAGE="linux-api-headers" |
| shann@25780 | 4 VERSION="5.10.238" |
| pascal@20243 | 5 KBASEVER="${VERSION%.*}" |
| slaxemulator@6654 | 6 CATEGORY="development" |
| slaxemulator@6654 | 7 SHORT_DESC="Kernel headers sanitized for use in userspace." |
| slaxemulator@6654 | 8 MAINTAINER="devel@slitaz.org" |
| pascal@14657 | 9 LICENSE="GPL2" |
| slaxemulator@6654 | 10 SOURCE="linux" |
| pankso@12268 | 11 TARBALL="$SOURCE-$KBASEVER.tar.xz" |
| pascal@20421 | 12 WEB_SITE="https://www.kernel.org/" |
| shann@25629 | 13 WGET_URL="https://www.kernel.org/pub/linux/kernel/v${KBASEVER%.*}.x/$TARBALL" |
| pascal@19387 | 14 PROVIDE="linux-headers linux64-api-headers linux64-headers" |
| shann@25728 | 15 HOST_ARCH="i486 x86_64" |
| pankso@12268 | 16 |
| shann@25728 | 17 BUILD_DEPENDS="bash rsync wget" # bootstrap x86_64 remove wget bdep |
| pankso@12268 | 18 |
| pascal@14351 | 19 [ "$KBASEVER" != "$VERSION" ] && |
| pascal@14351 | 20 PATCH="$(dirname $WGET_URL)/patch-$VERSION.xz" && |
| pascal@14351 | 21 EXTRA_SOURCE_FILES="$(basename $PATCH)" |
| slaxemulator@6654 | 22 |
| pascal@24497 | 23 # What is the latest version available today? |
| pascal@24497 | 24 current_version() |
| pascal@24497 | 25 { |
| pascal@24497 | 26 wget -O - $WEB_SITE 2> /dev/null | grep -A 1 longterm | \ |
| pascal@24497 | 27 sed '/strong/!d;s|.*<strong>||;s|</s.*||;q' |
| pascal@24497 | 28 } |
| pascal@24497 | 29 |
| gokhlayeh@8196 | 30 # Rules to compile & install the temporary toolchain. |
| gokhlayeh@8196 | 31 cook_tmp_toolchain() |
| gokhlayeh@8196 | 32 { |
| gokhlayeh@8196 | 33 cd $src |
| gokhlayeh@8196 | 34 make mrproper && |
| gokhlayeh@8196 | 35 make headers_check && |
| gokhlayeh@8196 | 36 make INSTALL_HDR_PATH=dest headers_install && |
| gokhlayeh@8196 | 37 cp -r dest/include/* /tools/include |
| gokhlayeh@8196 | 38 } |
| gokhlayeh@8196 | 39 |
| slaxemulator@6654 | 40 # Rules to configure and make the package. |
| slaxemulator@6654 | 41 compile_rules() |
| slaxemulator@6654 | 42 { |
| slaxemulator@6654 | 43 cd $src |
| pankso@12268 | 44 |
| pankso@12268 | 45 if [ "$KBASEVER" != "$VERSION" ]; then |
| pascal@14181 | 46 [ -s $SRC/$(basename $PATCH) ] || |
| pascal@14181 | 47 wget --no-check-certificate $PATCH -O $SRC/$(basename $PATCH) |
| pascal@14181 | 48 xzcat $SRC/$(basename $PATCH) | patch -Np1 |
| pascal@14181 | 49 touch done.patch-$VERSION |
| pankso@12268 | 50 fi |
| pankso@12268 | 51 |
| gokhlayeh@8196 | 52 make mrproper && |
| gokhlayeh@8196 | 53 make headers_check && |
| gokhlayeh@8196 | 54 make INSTALL_HDR_PATH=$DESTDIR/usr headers_install |
| slaxemulator@6654 | 55 } |
| slaxemulator@6654 | 56 |
| slaxemulator@6654 | 57 # Rules to gen a SliTaz package suitable for Tazpkg. |
| slaxemulator@6654 | 58 genpkg_rules() |
| slaxemulator@6654 | 59 { |
| slaxemulator@6654 | 60 mkdir -p $fs/usr |
| pascal@15603 | 61 cp -a $install/usr/include $fs/usr |
| slaxemulator@6654 | 62 rm -f $(find ${fs} -name .install -or -name ..install.cmd) |
| slaxemulator@6654 | 63 } |
| slaxemulator@6654 | 64 |
| slaxemulator@6654 | 65 # Post install commands for Tazpkg. |
| slaxemulator@6654 | 66 post_install() |
| slaxemulator@6654 | 67 { |
| slaxemulator@6654 | 68 # Removed old linux-headers |
| pankso@12268 | 69 rm -rf ${1}${INSTALLED}/linux-headers 2>/dev/null |
| slaxemulator@6654 | 70 } |