wok-next annotate linux-api-headers/receipt @ rev 19561
Initial commit to wok-next (SliTaz v.6 now): update 61 packages (about) according to LFS 7.10
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Dec 16 01:16:56 2016 +0200 (2016-12-16) |
parents | 58fd2812d1bf |
children | a6984f082794 |
rev | line source |
---|---|
slaxemulator@6654 | 1 # SliTaz package receipt. |
slaxemulator@6654 | 2 |
slaxemulator@6654 | 3 PACKAGE="linux-api-headers" |
al@19561 | 4 VERSION="4.7.2" |
al@19561 | 5 #KBASEVER="${VERSION:0:3}" |
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" |
al@19561 | 11 WEB_SITE="https://www.kernel.org/" |
al@19561 | 12 |
al@19561 | 13 TARBALL="$SOURCE-$VERSION.tar.xz" |
al@19561 | 14 WGET_URL="https://www.kernel.org/pub/linux/kernel/v4.x/$TARBALL" |
al@19561 | 15 |
pascal@19387 | 16 PROVIDE="linux-headers linux64-api-headers linux64-headers" |
al@19561 | 17 BUILD_DEPENDS="bash libtinfo" |
pankso@12268 | 18 |
al@19561 | 19 #[ "$KBASEVER" != "$VERSION" ] && |
al@19561 | 20 #PATCH="$(dirname $WGET_URL)/patch-$VERSION.xz" && |
al@19561 | 21 #EXTRA_SOURCE_FILES="$(basename $PATCH)" |
slaxemulator@6654 | 22 |
gokhlayeh@8196 | 23 # Rules to compile & install the temporary toolchain. |
gokhlayeh@8196 | 24 cook_tmp_toolchain() |
gokhlayeh@8196 | 25 { |
gokhlayeh@8196 | 26 cd $src |
gokhlayeh@8196 | 27 make mrproper && |
gokhlayeh@8196 | 28 make headers_check && |
gokhlayeh@8196 | 29 make INSTALL_HDR_PATH=dest headers_install && |
gokhlayeh@8196 | 30 cp -r dest/include/* /tools/include |
gokhlayeh@8196 | 31 } |
gokhlayeh@8196 | 32 |
slaxemulator@6654 | 33 # Rules to configure and make the package. |
slaxemulator@6654 | 34 compile_rules() |
slaxemulator@6654 | 35 { |
al@19561 | 36 # cd $src |
al@19561 | 37 # |
al@19561 | 38 # if [ "$KBASEVER" != "$VERSION" ]; then |
al@19561 | 39 # [ -s $SRC/$(basename $PATCH) ] || |
al@19561 | 40 # wget --no-check-certificate $PATCH -O $SRC/$(basename $PATCH) |
al@19561 | 41 # xzcat $SRC/$(basename $PATCH) | patch -Np1 |
al@19561 | 42 # touch done.patch-$VERSION |
al@19561 | 43 # fi |
pankso@12268 | 44 |
gokhlayeh@8196 | 45 make mrproper && |
gokhlayeh@8196 | 46 make headers_check && |
gokhlayeh@8196 | 47 make INSTALL_HDR_PATH=$DESTDIR/usr headers_install |
slaxemulator@6654 | 48 } |
slaxemulator@6654 | 49 |
slaxemulator@6654 | 50 # Rules to gen a SliTaz package suitable for Tazpkg. |
slaxemulator@6654 | 51 genpkg_rules() |
slaxemulator@6654 | 52 { |
slaxemulator@6654 | 53 mkdir -p $fs/usr |
pascal@15603 | 54 cp -a $install/usr/include $fs/usr |
slaxemulator@6654 | 55 rm -f $(find ${fs} -name .install -or -name ..install.cmd) |
slaxemulator@6654 | 56 } |
slaxemulator@6654 | 57 |
slaxemulator@6654 | 58 # Post install commands for Tazpkg. |
slaxemulator@6654 | 59 post_install() |
slaxemulator@6654 | 60 { |
slaxemulator@6654 | 61 # Removed old linux-headers |
pankso@12268 | 62 rm -rf ${1}${INSTALLED}/linux-headers 2>/dev/null |
slaxemulator@6654 | 63 } |