wok diff mplayer-svn/receipt @ 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 | ea20cff80fb0 |
children | a11358feced4 |
line diff
1.1 --- a/mplayer-svn/receipt Wed Mar 03 11:21:08 2010 +0000 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