wok-6.x annotate linux-api-headers/receipt @ rev 24181
updated perl-berkeleydb (0.63 -> 0.64)
author | Hans-G?nter Theisgen |
---|---|
date | Fri Dec 31 13:39:16 2021 +0100 (2021-12-31) |
parents | 9bef8f62029f |
children | 34e801e0eb52 |
rev | line source |
---|---|
slaxemulator@6654 | 1 # SliTaz package receipt. |
slaxemulator@6654 | 2 |
slaxemulator@6654 | 3 PACKAGE="linux-api-headers" |
pascal@20261 | 4 VERSION="3.16.55" |
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/" |
pascal@20421 | 13 WGET_URL="https://www.kernel.org/pub/linux/kernel/v3.0/$TARBALL" |
pascal@19387 | 14 PROVIDE="linux-headers linux64-api-headers linux64-headers" |
pankso@12268 | 15 |
pascal@14181 | 16 BUILD_DEPENDS="bash wget" |
pankso@12268 | 17 |
pascal@14351 | 18 [ "$KBASEVER" != "$VERSION" ] && |
pascal@14351 | 19 PATCH="$(dirname $WGET_URL)/patch-$VERSION.xz" && |
pascal@14351 | 20 EXTRA_SOURCE_FILES="$(basename $PATCH)" |
slaxemulator@6654 | 21 |
gokhlayeh@8196 | 22 # Rules to compile & install the temporary toolchain. |
gokhlayeh@8196 | 23 cook_tmp_toolchain() |
gokhlayeh@8196 | 24 { |
gokhlayeh@8196 | 25 cd $src |
gokhlayeh@8196 | 26 make mrproper && |
gokhlayeh@8196 | 27 make headers_check && |
gokhlayeh@8196 | 28 make INSTALL_HDR_PATH=dest headers_install && |
gokhlayeh@8196 | 29 cp -r dest/include/* /tools/include |
gokhlayeh@8196 | 30 } |
gokhlayeh@8196 | 31 |
slaxemulator@6654 | 32 # Rules to configure and make the package. |
slaxemulator@6654 | 33 compile_rules() |
slaxemulator@6654 | 34 { |
slaxemulator@6654 | 35 cd $src |
pankso@12268 | 36 |
pankso@12268 | 37 if [ "$KBASEVER" != "$VERSION" ]; then |
pascal@14181 | 38 [ -s $SRC/$(basename $PATCH) ] || |
pascal@14181 | 39 wget --no-check-certificate $PATCH -O $SRC/$(basename $PATCH) |
pascal@14181 | 40 xzcat $SRC/$(basename $PATCH) | patch -Np1 |
pascal@14181 | 41 touch done.patch-$VERSION |
pankso@12268 | 42 fi |
pankso@12268 | 43 |
gokhlayeh@8196 | 44 make mrproper && |
gokhlayeh@8196 | 45 make headers_check && |
gokhlayeh@8196 | 46 make INSTALL_HDR_PATH=$DESTDIR/usr headers_install |
slaxemulator@6654 | 47 } |
slaxemulator@6654 | 48 |
slaxemulator@6654 | 49 # Rules to gen a SliTaz package suitable for Tazpkg. |
slaxemulator@6654 | 50 genpkg_rules() |
slaxemulator@6654 | 51 { |
slaxemulator@6654 | 52 mkdir -p $fs/usr |
pascal@15603 | 53 cp -a $install/usr/include $fs/usr |
slaxemulator@6654 | 54 rm -f $(find ${fs} -name .install -or -name ..install.cmd) |
slaxemulator@6654 | 55 } |
slaxemulator@6654 | 56 |
slaxemulator@6654 | 57 # Post install commands for Tazpkg. |
slaxemulator@6654 | 58 post_install() |
slaxemulator@6654 | 59 { |
slaxemulator@6654 | 60 # Removed old linux-headers |
pankso@12268 | 61 rm -rf ${1}${INSTALLED}/linux-headers 2>/dev/null |
slaxemulator@6654 | 62 } |