wok annotate rt-source/receipt @ rev 9993
hal-dev: add missing deps
author | Eric Joseph-Alexandre <erjo@slitaz.org> |
---|---|
date | Thu May 19 00:45:38 2011 +0200 (2011-05-19) |
parents | 2074057740e1 |
children |
rev | line source |
---|---|
devl547@6107 | 1 # SliTaz package receipt. |
devl547@6107 | 2 |
devl547@6107 | 3 PACKAGE="rt-source" |
devl547@6107 | 4 VERSION="2.6.33.7" |
pascal@9222 | 5 RT_VERSION=".2-rt30" |
devl547@6107 | 6 CATEGORY="development" |
devl547@6107 | 7 SHORT_DESC="Realtime Preemption patched low latency Linux kernel sources." |
devl547@6107 | 8 MAINTAINER="devl547@gmail.com" |
devl547@6107 | 9 WEB_SITE="http://www.kernel.org/pub/linux/kernel/projects/rt/" |
slaxemulator@9393 | 10 BUILD_DEPENDS="bzip2 rt-source-patch" |
slaxemulator@9393 | 11 SOURCE="linux" |
slaxemulator@9393 | 12 TARBALL="$SOURCE-$VERSION.tar.bz2" |
pascal@9222 | 13 RT_TARBALL="patch-$VERSION$RT_VERSION.bz2" |
devl547@6107 | 14 WGET_URL="http://www.kernel.org/pub/linux/kernel/v2.6/$TARBALL" |
devl547@6107 | 15 |
devl547@6107 | 16 # Rules to configure and make the package. |
devl547@6107 | 17 compile_rules() |
devl547@6107 | 18 { |
pascal@9222 | 19 cd $src |
pascal@9222 | 20 mkdir -p _pkg/$PACKAGE-$VERSION$RT_VERSION |
pascal@9222 | 21 mv * _pkg/$PACKAGE-$VERSION$RT_VERSION 2> /dev/null |
slaxemulator@9393 | 22 # can't extract since its bzip2 only and not tar.bz2 |
slaxemulator@9393 | 23 if [ ! -f $SOURCE_REPOSITORY/$RT_TARBALL ]; then |
slaxemulator@9393 | 24 tazwok get-src rt-source-patch |
slaxemulator@9393 | 25 fi |
slaxemulator@9393 | 26 |
slaxemulator@9393 | 27 if [ -f $SOURCE_REPOSITORY/$RT_TARBALL ]; then |
slaxemulator@9393 | 28 cp $SOURCE_REPOSITORY/$RT_TARBALL . |
slaxemulator@9393 | 29 bunzip2 -d $RT_TARBALL |
slaxemulator@9393 | 30 fi |
pascal@9222 | 31 cd _pkg/$PACKAGE-$VERSION$RT_VERSION |
pascal@9222 | 32 patch -p1 < ../../patch-$VERSION$RT_VERSION |
devl547@6107 | 33 } |
devl547@6107 | 34 |
devl547@6107 | 35 # Rules to gen a SliTaz package suitable for Tazpkg. |
devl547@6107 | 36 genpkg_rules() |
devl547@6107 | 37 { |
devl547@6107 | 38 mkdir -p $fs/usr/src/ |
pascal@9222 | 39 mv $_pkg/$PACKAGE-$VERSION$RT_VERSION $fs/usr/src/ |
devl547@6107 | 40 } |