wok-next view linux-api-headers/receipt @ rev 19714

Up cookutils (901)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri May 12 16:19:41 2017 +0300 (2017-05-12)
parents 960a052d15d3
children 9a17d981d0f7
line source
1 # SliTaz package receipt.
3 PACKAGE="linux-api-headers"
4 VERSION="4.9.4"
5 KBASEVER="4.9"
6 CATEGORY="development"
7 SHORT_DESC="Kernel headers sanitized for use in userspace."
8 MAINTAINER="devel@slitaz.org"
9 LICENSE="GPL2"
10 WEB_SITE="https://www.kernel.org/"
12 TARBALL="linux-$KBASEVER.tar.xz"
13 WGET_URL="https://www.kernel.org/pub/linux/kernel/v4.x/$TARBALL"
15 PROVIDE="linux-headers linux64-api-headers linux64-headers"
16 BUILD_DEPENDS="bash perl patch"
17 SIBLINGS="linux linux-dev linux-man"
19 if [ "$KBASEVER" != "${VERSION%.0}" ]; 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 # Update sources to the $VERSION using base sources ($KBASEVER) and patch
28 if [ "$KBASEVER" != "${VERSION%.0}" ]; then
29 [ -s $SRC/$(basename $PATCH) ] || wget $PATCH -O $SRC/$(basename $PATCH)
30 # don't patch twice for `cook $PACKAGE --continue`
31 if [ ! -f "done.patch-$VERSION" ]; then
32 xzcat $SRC/$(basename $PATCH) | patch -Np1
33 touch done.patch-$VERSION
34 fi
35 fi
37 # # Get and apply Aufs patches
38 # . $WOK/linux/stuff/tools/aufs-patches
40 make mrproper &&
41 make headers_check &&
42 make INSTALL_HDR_PATH=$DESTDIR/usr headers_install
43 }
45 # Rules to gen a SliTaz package suitable for Tazpkg.
46 genpkg_rules()
47 {
48 mkdir -p $fs/usr
49 cp -a $install/usr/include $fs/usr
50 find $fs -name .install -or -name ..install.cmd -delete
51 }