wok-next view linux-api-headers/receipt @ rev 19775
Up gdk-pixbuf
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Jun 16 01:31:57 2017 +0300 (2017-06-16) |
parents | 9ec6f2ed49e9 |
children |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="linux-api-headers"
4 VERSION="4.9.30"
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
44 find $install \( -name .install -o -name ..install.cmd \) -delete
45 }
47 # Rules to gen a SliTaz package suitable for Tazpkg.
48 genpkg_rules()
49 {
50 copy @dev
51 }