wok diff rt-source/receipt @ rev 9943

gpgme: fix bdeps.
author Eric Joseph-Alexandre <erjo@slitaz.org>
date Wed May 18 12:04:53 2011 +0200 (2011-05-18)
parents 2074057740e1
children
line diff
     1.1 --- a/rt-source/receipt	Fri Mar 11 17:41:03 2011 +0100
     1.2 +++ b/rt-source/receipt	Wed May 18 12:04:53 2011 +0200
     1.3 @@ -7,11 +7,11 @@
     1.4  SHORT_DESC="Realtime Preemption patched low latency Linux kernel sources."
     1.5  MAINTAINER="devl547@gmail.com"
     1.6  WEB_SITE="http://www.kernel.org/pub/linux/kernel/projects/rt/"
     1.7 -BUILD_DEPENDS="bzip2"
     1.8 -TARBALL="linux-$VERSION.tar.bz2"
     1.9 +BUILD_DEPENDS="bzip2 rt-source-patch"
    1.10 +SOURCE="linux"
    1.11 +TARBALL="$SOURCE-$VERSION.tar.bz2"
    1.12  RT_TARBALL="patch-$VERSION$RT_VERSION.bz2"
    1.13  WGET_URL="http://www.kernel.org/pub/linux/kernel/v2.6/$TARBALL"
    1.14 -RT_URL="$WEB_SITE/$RT_TARBALL"
    1.15  
    1.16  # Rules to configure and make the package.
    1.17  compile_rules()
    1.18 @@ -19,8 +19,15 @@
    1.19  	cd $src
    1.20  	mkdir -p _pkg/$PACKAGE-$VERSION$RT_VERSION
    1.21  	mv * _pkg/$PACKAGE-$VERSION$RT_VERSION 2> /dev/null
    1.22 -	wget $RT_URL
    1.23 -	bzip2 -d $RT_TARBALL
    1.24 +	# can't extract since its bzip2 only and not tar.bz2
    1.25 +	if [ ! -f $SOURCE_REPOSITORY/$RT_TARBALL ]; then
    1.26 +		tazwok get-src rt-source-patch
    1.27 +	fi
    1.28 +
    1.29 +	if [ -f $SOURCE_REPOSITORY/$RT_TARBALL ]; then
    1.30 +		cp $SOURCE_REPOSITORY/$RT_TARBALL .
    1.31 +		bunzip2 -d $RT_TARBALL
    1.32 +	fi
    1.33  	cd _pkg/$PACKAGE-$VERSION$RT_VERSION
    1.34  	patch -p1 < ../../patch-$VERSION$RT_VERSION
    1.35  }