wok-6.x view linux-arm-api-headers/receipt @ rev 12695
linux-arm-api-headers: All ARM cross tools/files in /usr/cross/arm
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Thu May 03 01:25:06 2012 +0200 (2012-05-03) |
parents | 8b68b81bf9c7 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="linux-arm-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="devel@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="arm-slitaz-linux-gnueabi"
20 CROSS_PREFIX="/usr/cross/arm"
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=arm headers_check &&
38 make ARCH=arm \
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 }