wok-current view linux-api-headers/receipt @ rev 20103
Typo in pypdf2
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Oct 09 16:28:52 2017 +0200 (2017-10-09) |
parents | 08cf996a2307 |
children | ffc20f9bd49f |
line source
1 # SliTaz package receipt.
3 PACKAGE="linux-api-headers"
4 VERSION="3.2.71"
5 KBASEVER="${VERSION:0:3}"
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 TARBALL="$SOURCE-$KBASEVER.tar.xz"
12 WEB_SITE="http://www.kernel.org/"
13 WGET_URL="http://www.kernel.org/pub/linux/kernel/v3.0/$TARBALL"
14 PROVIDE="linux-headers linux64-api-headers linux64-headers"
16 BUILD_DEPENDS="bash wget"
18 [ "$KBASEVER" != "$VERSION" ] &&
19 PATCH="$(dirname $WGET_URL)/patch-$VERSION.xz" &&
20 EXTRA_SOURCE_FILES="$(basename $PATCH)"
22 # Rules to compile & install the temporary toolchain.
23 cook_tmp_toolchain()
24 {
25 cd $src
26 make mrproper &&
27 make headers_check &&
28 make INSTALL_HDR_PATH=dest headers_install &&
29 cp -r dest/include/* /tools/include
30 }
32 # Rules to configure and make the package.
33 compile_rules()
34 {
35 cd $src
37 if [ "$KBASEVER" != "$VERSION" ]; then
38 [ -s $SRC/$(basename $PATCH) ] ||
39 wget --no-check-certificate $PATCH -O $SRC/$(basename $PATCH)
40 xzcat $SRC/$(basename $PATCH) | patch -Np1
41 touch done.patch-$VERSION
42 fi
44 make mrproper &&
45 make headers_check &&
46 make INSTALL_HDR_PATH=$DESTDIR/usr headers_install
47 }
49 # Rules to gen a SliTaz package suitable for Tazpkg.
50 genpkg_rules()
51 {
52 mkdir -p $fs/usr
53 cp -a $install/usr/include $fs/usr
54 rm -f $(find ${fs} -name .install -or -name ..install.cmd)
55 }
57 # Post install commands for Tazpkg.
58 post_install()
59 {
60 # Removed old linux-headers
61 rm -rf ${1}${INSTALLED}/linux-headers 2>/dev/null
62 }