wok diff libparserutils/receipt @ rev 5561

hubbub, libnsgif, libparserutils, libsmpeg: cache svn fetched files in SOURCES_REPOSITORY
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri May 14 10:47:49 2010 +0200 (2010-05-14)
parents 9840e52f2442
children a11358feced4
line diff
     1.1 --- a/libparserutils/receipt	Wed Apr 29 21:29:51 2009 +0200
     1.2 +++ b/libparserutils/receipt	Fri May 14 10:47:49 2010 +0200
     1.3 @@ -12,8 +12,14 @@
     1.4  compile_rules()
     1.5  {
     1.6  	[ -d "$PACKAGE-$VERSION" ] && rm -rf $PACKAGE-$VERSION
     1.7 -	svn co svn://svn.netsurf-browser.org/trunk/libparserutils \
     1.8 -		-r $VERSION $PACKAGE-$VERSION
     1.9 +	TARBALL=$SOURCES_REPOSITORY/$PACKAGE-svn-$VERSION.tar.gz
    1.10 +	if [ -f $TARBALL ]; then
    1.11 +		tar xzf $TARBALL
    1.12 +	else
    1.13 +		svn co svn://svn.netsurf-browser.org/trunk/libparserutils \
    1.14 +			-r $VERSION $PACKAGE-$VERSION
    1.15 +		tar czf $TARBALL $PACKAGE-$VERSION
    1.16 +	fi
    1.17  	cd $src
    1.18  	make install DESTDIR=$PWD/_pkg PREFIX=/usr &&
    1.19  	make install COMPONENT_TYPE=lib-shared DESTDIR=$PWD/_pkg PREFIX=/usr