wok-6.x annotate 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 |
rev | line source |
---|---|
pankso@12309 | 1 # SliTaz package receipt. |
pankso@12309 | 2 |
pankso@12309 | 3 PACKAGE="linux-arm-api-headers" |
pankso@12309 | 4 VERSION="3.2.14" |
pankso@12309 | 5 KBASEVER="${VERSION:0:3}" |
pankso@12309 | 6 CATEGORY="development" |
pankso@12309 | 7 SHORT_DESC="Kernel headers sanitized for use in userspace." |
pankso@12309 | 8 MAINTAINER="devel@slitaz.org" |
pankso@12309 | 9 SOURCE="linux" |
pankso@12309 | 10 TARBALL="$SOURCE-$KBASEVER.tar.xz" |
pankso@12309 | 11 WEB_SITE="http://www.kernel.org/" |
pankso@12309 | 12 WGET_URL="http://www.kernel.org/pub/linux/kernel/v3.0/$TARBALL" |
pankso@12309 | 13 |
pankso@12309 | 14 BUILD_DEPENDS="bash" |
pankso@12309 | 15 |
pankso@12309 | 16 [ "$KBASEVER" != "$VERSION" ] && PATCH="http://www.kernel.org/pub/linux/kernel/v3.0/patch-$VERSION.xz" |
pankso@12309 | 17 |
pankso@12695 | 18 # Cross toolchain variables. |
pankso@12695 | 19 CROSS_TARGET="arm-slitaz-linux-gnueabi" |
pankso@12695 | 20 CROSS_PREFIX="/usr/cross/arm" |
pankso@12695 | 21 |
pankso@12309 | 22 # Rules to configure and make the package. |
pankso@12309 | 23 compile_rules() |
pankso@12309 | 24 { |
pankso@12309 | 25 cd $src |
pankso@12695 | 26 |
pankso@12309 | 27 if [ "$KBASEVER" != "$VERSION" ]; then |
pankso@12309 | 28 if [ -f $SOURCES_REPOSITORY/$(basename $PATCH) ]; then |
pankso@12309 | 29 xzcat $SOURCES_REPOSITORY/$(basename $PATCH) | patch -Np1 |
pankso@12309 | 30 else |
pankso@12309 | 31 wget $PATCH -O $SRC/$(basename $PATCH) |
pankso@12309 | 32 xzcat $SRC/$(basename $PATCH) | patch -Np1 |
pankso@12309 | 33 fi |
pankso@12309 | 34 fi |
pankso@12309 | 35 |
pankso@12309 | 36 make mrproper && |
pankso@12309 | 37 make ARCH=arm headers_check && |
pankso@12695 | 38 make ARCH=arm \ |
pankso@12695 | 39 INSTALL_HDR_PATH=${DESTDIR}${CROSS_PREFIX} \ |
pankso@12695 | 40 headers_install |
pankso@12309 | 41 } |
pankso@12309 | 42 |
pankso@12309 | 43 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@12309 | 44 genpkg_rules() |
pankso@12309 | 45 { |
pankso@12309 | 46 mkdir -p $fs/usr |
pankso@12695 | 47 cp -a $install/usr/cross $fs/usr |
pankso@12309 | 48 rm -f $(find ${fs} -name .install -or -name ..install.cmd) |
pankso@12309 | 49 } |