wok-6.x view linux-x86_64-api-headers/receipt @ rev 12749

ziproxy: update mod
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed May 09 23:20:27 2012 +0200 (2012-05-09)
parents
children
line source
1 # SliTaz package receipt.
3 PACKAGE="linux-x86_64-api-headers"
4 VERSION="3.2.14"
5 KBASEVER="${VERSION:0:3}"
6 CATEGORY="development"
7 SHORT_DESC="Kernel headers sanitized for use in userspace."
8 MAINTAINER="erjo@slitaz.org"
9 SOURCE="linux"
10 TARBALL="$SOURCE-$KBASEVER.tar.xz"
11 WEB_SITE="http://www.kernel.org/"
12 WGET_URL="http://www.kernel.org/pub/linux/kernel/v3.0/$TARBALL"
14 BUILD_DEPENDS="bash"
16 [ "$KBASEVER" != "$VERSION" ] && PATCH="http://www.kernel.org/pub/linux/kernel/v3.0/patch-$VERSION.xz"
18 # Cross toolchain variables.
19 CROSS_TARGET="x86_64-slitaz-linux"
20 CROSS_PREFIX="/usr/cross/x86_64"
22 # Rules to configure and make the package.
23 compile_rules()
24 {
25 cd $src
27 if [ "$KBASEVER" != "$VERSION" ]; then
28 if [ -f $SOURCES_REPOSITORY/$(basename $PATCH) ]; then
29 xzcat $SOURCES_REPOSITORY/$(basename $PATCH) | patch -Np1
30 else
31 wget $PATCH -O $SRC/$(basename $PATCH)
32 xzcat $SRC/$(basename $PATCH) | patch -Np1
33 fi
34 fi
36 make mrproper &&
37 make ARCH=x86_64 headers_check &&
38 make ARCH=x86_64 \
39 INSTALL_HDR_PATH=${DESTDIR}${CROSS_PREFIX} \
40 headers_install
41 }
43 # Rules to gen a SliTaz package suitable for Tazpkg.
44 genpkg_rules()
45 {
46 mkdir -p $fs/usr
47 cp -a $install/usr/cross $fs/usr
48 rm -f $(find ${fs} -name .install -or -name ..install.cmd)
49 }