wok-next annotate linux-api-headers/receipt @ rev 19574

All about ncurses. Carefully follow LFS receipts.
libtinfo.so included into libncursesw.so and no more need (so far).
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sat Dec 24 05:45:18 2016 +0200 (2016-12-24)
parents a6984f082794
children 119e586fb823
rev   line source
slaxemulator@6654 1 # SliTaz package receipt.
slaxemulator@6654 2
slaxemulator@6654 3 PACKAGE="linux-api-headers"
al@19569 4 VERSION="4.9"
al@19569 5 KBASEVER="$(echo $VERSION | cut -d. -f1,2)"
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@19569 13 TARBALL="$SOURCE-$KBASEVER.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@19574 17 BUILD_DEPENDS="bash perl"
pankso@12268 18
al@19569 19 if [ "$KBASEVER" != "$VERSION" ]; then
al@19569 20 PATCH="$(dirname $WGET_URL)/patch-$VERSION.xz"
al@19569 21 EXTRA_SOURCE_FILES="$(basename $PATCH)"
al@19569 22 fi
gokhlayeh@8196 23
slaxemulator@6654 24 # Rules to configure and make the package.
slaxemulator@6654 25 compile_rules()
slaxemulator@6654 26 {
al@19569 27 if [ "$KBASEVER" != "$VERSION" ]; then
al@19569 28 [ -s $SRC/$(basename $PATCH) ] ||
al@19569 29 wget --no-check-certificate $PATCH -O $SRC/$(basename $PATCH)
al@19569 30 xzcat $SRC/$(basename $PATCH) | patch -Np1
al@19569 31 touch done.patch-$VERSION
al@19569 32 fi
pankso@12268 33
gokhlayeh@8196 34 make mrproper &&
gokhlayeh@8196 35 make headers_check &&
gokhlayeh@8196 36 make INSTALL_HDR_PATH=$DESTDIR/usr headers_install
slaxemulator@6654 37 }
slaxemulator@6654 38
slaxemulator@6654 39 # Rules to gen a SliTaz package suitable for Tazpkg.
slaxemulator@6654 40 genpkg_rules()
slaxemulator@6654 41 {
slaxemulator@6654 42 mkdir -p $fs/usr
pascal@15603 43 cp -a $install/usr/include $fs/usr
al@19569 44 rm -f $(find $fs -name .install -or -name ..install.cmd)
slaxemulator@6654 45 }