wok-next rev 12713
Add: linux-x86_64-api-headers
author | Eric Joseph-Alexandre <erjo@slitaz.org> |
---|---|
date | Sat May 05 00:34:42 2012 +0200 (2012-05-05) |
parents | 28402c9d6dd4 |
children | a497988d5e1b |
files | linux-x86_64-api-headers/receipt |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/linux-x86_64-api-headers/receipt Sat May 05 00:34:42 2012 +0200 1.3 @@ -0,0 +1,49 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="linux-x86_64-api-headers" 1.7 +VERSION="3.2.14" 1.8 +KBASEVER="${VERSION:0:3}" 1.9 +CATEGORY="development" 1.10 +SHORT_DESC="Kernel headers sanitized for use in userspace." 1.11 +MAINTAINER="erjo@slitaz.org" 1.12 +SOURCE="linux" 1.13 +TARBALL="$SOURCE-$KBASEVER.tar.xz" 1.14 +WEB_SITE="http://www.kernel.org/" 1.15 +WGET_URL="http://www.kernel.org/pub/linux/kernel/v3.0/$TARBALL" 1.16 + 1.17 +BUILD_DEPENDS="bash" 1.18 + 1.19 +[ "$KBASEVER" != "$VERSION" ] && PATCH="http://www.kernel.org/pub/linux/kernel/v3.0/patch-$VERSION.xz" 1.20 + 1.21 +# Cross toolchain variables. 1.22 +CROSS_TARGET="x86_64-slitaz-linux" 1.23 +CROSS_PREFIX="/usr/cross/x86_64" 1.24 + 1.25 +# Rules to configure and make the package. 1.26 +compile_rules() 1.27 +{ 1.28 + cd $src 1.29 + 1.30 + if [ "$KBASEVER" != "$VERSION" ]; then 1.31 + if [ -f $SOURCES_REPOSITORY/$(basename $PATCH) ]; then 1.32 + xzcat $SOURCES_REPOSITORY/$(basename $PATCH) | patch -Np1 1.33 + else 1.34 + wget $PATCH -O $SRC/$(basename $PATCH) 1.35 + xzcat $SRC/$(basename $PATCH) | patch -Np1 1.36 + fi 1.37 + fi 1.38 + 1.39 + make mrproper && 1.40 + make ARCH=x86_64 headers_check && 1.41 + make ARCH=x86_64 \ 1.42 + INSTALL_HDR_PATH=${DESTDIR}${CROSS_PREFIX} \ 1.43 + headers_install 1.44 +} 1.45 + 1.46 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.47 +genpkg_rules() 1.48 +{ 1.49 + mkdir -p $fs/usr 1.50 + cp -a $install/usr/cross $fs/usr 1.51 + rm -f $(find ${fs} -name .install -or -name ..install.cmd) 1.52 +}