wok rev 5562

mplayer-svn, rage: cache svn fetched files in SOURCES_REPOSITORY
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri May 14 10:52:03 2010 +0200 (2010-05-14)
parents b537813316cf
children a11358feced4
files mplayer-svn/receipt rage/receipt
line diff
     1.1 --- a/mplayer-svn/receipt	Fri May 14 10:47:49 2010 +0200
     1.2 +++ b/mplayer-svn/receipt	Fri May 14 10:52:03 2010 +0200
     1.3 @@ -27,8 +27,16 @@
     1.4  
     1.5  compile_rules()
     1.6  {
     1.7 -	[ -d $PACKAGE-$VERSION ] || svn checkout -r $VERSION \
     1.8 -		svn://svn.mplayerhq.hu/mplayer/trunk $PACKAGE-$VERSION
     1.9 +	TARBALL=$SOURCES_REPOSITORY/$PACKAGE-$VERSION.tar.gz
    1.10 +	if [ -d $PACKAGE-$VERSION ]; then
    1.11 +		true
    1.12 +	elif [ -f $TARBALL ]; then
    1.13 +		tar xzf $TARBALL
    1.14 +	else
    1.15 +		svn checkout -r $VERSION \
    1.16 +			svn://svn.mplayerhq.hu/mplayer/trunk $PACKAGE-$VERSION
    1.17 +		tar czf $TARBALL $PACKAGE-$VERSION
    1.18 +	fi
    1.19  	cd $src
    1.20  	# disable unwanted features, remote control, streaming, networking, unwanted codecs, 
    1.21  	# disable video outputs, audio outputs, some advanced options
     2.1 --- a/rage/receipt	Fri May 14 10:47:49 2010 +0200
     2.2 +++ b/rage/receipt	Fri May 14 10:52:03 2010 +0200
     2.3 @@ -15,8 +15,14 @@
     2.4  compile_rules()
     2.5  {
     2.6  	[ -d "$PACKAGE-$VERSION" ] && rm -rf $PACKAGE-$VERSION
     2.7 -	svn co http://svn.enlightenment.org/svn/e/trunk/$PACKAGE \
     2.8 -		-r $VERSION $PACKAGE-$VERSION
     2.9 +	TARBALL=$SOURCES_REPOSITORY/$PACKAGE-svn-$VERSION.tar.gz
    2.10 +	if [ -f $TARBALL ]; then
    2.11 +		tar xzf $TARBALL
    2.12 +	else
    2.13 +		svn co http://svn.enlightenment.org/svn/e/trunk/$PACKAGE \
    2.14 +			-r $VERSION $PACKAGE-$VERSION
    2.15 +		tar czf $TARBALL $PACKAGE-$VERSION
    2.16 +	fi
    2.17  	cd $src
    2.18  	./autogen.sh \
    2.19  		--prefix=/usr \