wok rev 5554

opentyrian-classic, pidgin-facebookchat, prboom, rgzip: cache extra wget'd files in SOURCES_REPOSITORY
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu May 13 22:57:11 2010 +0200 (2010-05-13)
parents b4b992b90e4a
children f5b04145b323
files opentyrian-classic/receipt pidgin-facebookchat/receipt prboom/receipt rgzip/receipt
line diff
     1.1 --- a/opentyrian-classic/receipt	Thu May 13 22:41:03 2010 +0200
     1.2 +++ b/opentyrian-classic/receipt	Thu May 13 22:57:11 2010 +0200
     1.3 @@ -15,11 +15,18 @@
     1.4  # Rules to configure and make the package.
     1.5  compile_rules()
     1.6  {
     1.7 -	hg clone https://opentyrian.googlecode.com/hg/ opentyrian  
     1.8 +	TARBALL=$SOURCES_REPOSITORY/$PACKAGE.tar.gz
     1.9 +	if [ -f $TARBALL ]; then
    1.10 +		tar xzf $TARBALL
    1.11 +	else
    1.12 +		hg clone https://opentyrian.googlecode.com/hg/ opentyrian  
    1.13 +		tar czf $TARBALL opentyrian
    1.14 +	if
    1.15  	cd $SOURCE
    1.16  	make release
    1.17 -	wget http://camanis.net/tyrian/tyrian21.zip
    1.18 -	unzip tyrian21.zip
    1.19 +	[ -f $SOURCES_REPOSITORY/tyrian21.zip ] ||
    1.20 +	wget http://camanis.net/tyrian/tyrian21.zip -P $SOURCES_REPOSITORY
    1.21 +	unzip $SOURCES_REPOSITORY/tyrian21.zip
    1.22  }
    1.23  
    1.24  # Rules to gen a SliTaz package suitable for Tazpkg.
     2.1 --- a/pidgin-facebookchat/receipt	Thu May 13 22:41:03 2010 +0200
     2.2 +++ b/pidgin-facebookchat/receipt	Thu May 13 22:57:11 2010 +0200
     2.3 @@ -30,9 +30,11 @@
     2.4  	
     2.5  	# Pidgin icons
     2.6  	mkdir -p $fs/usr/share/pixmaps/pidgin/protocols
     2.7 +	[ -f $SOURCES_REPOSITORY/facebook_icons.zip ] || \
     2.8  	wget http://pidgin-facebookchat.googlecode.com/files/facebook_icons.zip
     2.9  	mkdir facebook_icons
    2.10 -	unzip -o facebook_icons.zip -d $fs/usr/share/pixmaps/pidgin/protocols	
    2.11 +	unzip -o $SOURCES_REPOSITORY/facebook_icons.zip \
    2.12 +		-d $fs/usr/share/pixmaps/pidgin/protocols	
    2.13  }
    2.14  
    2.15  # clean commands for Tazwok.
     3.1 --- a/prboom/receipt	Thu May 13 22:41:03 2010 +0200
     3.2 +++ b/prboom/receipt	Thu May 13 22:57:11 2010 +0200
     3.3 @@ -38,7 +38,9 @@
     3.4  	cp -a $_pkg/usr/share/games $fs/usr/share
     3.5  	
     3.6  	echo "Downloading game data : doom1.wad"
     3.7 -	wget http://people.slitaz.org/~mallory/stuff/prboom/doom1.wad -O $fs/usr/share/games/doom/doom1.wad
     3.8 +	[ -f $SOURCES_REPOSITORY/doom1.wad ] ||
     3.9 +	wget http://people.slitaz.org/~mallory/stuff/prboom/doom1.wad -P $SOURCES_REPOSITORY
    3.10 +	cp $SOURCES_REPOSITORY/doom1.wad $fs/usr/share/games/doom
    3.11  
    3.12  	echo "Copying metadata"
    3.13  	cp stuff/prboom.desktop $fs/usr/share/applications
     4.1 --- a/rgzip/receipt	Thu May 13 22:41:03 2010 +0200
     4.2 +++ b/rgzip/receipt	Thu May 13 22:57:11 2010 +0200
     4.3 @@ -16,7 +16,8 @@
     4.4  {
     4.5  	mkdir $src
     4.6  	cd $src
     4.7 -	[ -f rgzip.c ] || wget $FILE
     4.8 +	[ -f $SOURCES_REPOSITORY/rgzip.c ] || wget $FILE -P $SOURCES_REPOSITORY
     4.9 +	cp $SOURCES_REPOSITORY/rgzip.c .
    4.10  	make rgzip
    4.11  }
    4.12