wok-next view 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
line source
1 # SliTaz package receipt.
3 PACKAGE="linux-api-headers"
4 VERSION="4.9"
5 KBASEVER="$(echo $VERSION | cut -d. -f1,2)"
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 WEB_SITE="https://www.kernel.org/"
13 TARBALL="$SOURCE-$KBASEVER.tar.xz"
14 WGET_URL="https://www.kernel.org/pub/linux/kernel/v4.x/$TARBALL"
16 PROVIDE="linux-headers linux64-api-headers linux64-headers"
17 BUILD_DEPENDS="bash perl"
19 if [ "$KBASEVER" != "$VERSION" ]; then
20 PATCH="$(dirname $WGET_URL)/patch-$VERSION.xz"
21 EXTRA_SOURCE_FILES="$(basename $PATCH)"
22 fi
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 if [ "$KBASEVER" != "$VERSION" ]; then
28 [ -s $SRC/$(basename $PATCH) ] ||
29 wget --no-check-certificate $PATCH -O $SRC/$(basename $PATCH)
30 xzcat $SRC/$(basename $PATCH) | patch -Np1
31 touch done.patch-$VERSION
32 fi
34 make mrproper &&
35 make headers_check &&
36 make INSTALL_HDR_PATH=$DESTDIR/usr headers_install
37 }
39 # Rules to gen a SliTaz package suitable for Tazpkg.
40 genpkg_rules()
41 {
42 mkdir -p $fs/usr
43 cp -a $install/usr/include $fs/usr
44 rm -f $(find $fs -name .install -or -name ..install.cmd)
45 }