# HG changeset patch # User Pascal Bellard # Date 1273784231 -7200 # Node ID aebcbcedcc6b54fba68e91c4613da01abaf448a6 # Parent b4b992b90e4a36201512f71621bdff478eea759d opentyrian-classic, pidgin-facebookchat, prboom, rgzip: cache extra wget'd files in SOURCES_REPOSITORY diff -r b4b992b90e4a -r aebcbcedcc6b opentyrian-classic/receipt --- a/opentyrian-classic/receipt Thu May 13 22:41:03 2010 +0200 +++ b/opentyrian-classic/receipt Thu May 13 22:57:11 2010 +0200 @@ -15,11 +15,18 @@ # Rules to configure and make the package. compile_rules() { - hg clone https://opentyrian.googlecode.com/hg/ opentyrian + TARBALL=$SOURCES_REPOSITORY/$PACKAGE.tar.gz + if [ -f $TARBALL ]; then + tar xzf $TARBALL + else + hg clone https://opentyrian.googlecode.com/hg/ opentyrian + tar czf $TARBALL opentyrian + if cd $SOURCE make release - wget http://camanis.net/tyrian/tyrian21.zip - unzip tyrian21.zip + [ -f $SOURCES_REPOSITORY/tyrian21.zip ] || + wget http://camanis.net/tyrian/tyrian21.zip -P $SOURCES_REPOSITORY + unzip $SOURCES_REPOSITORY/tyrian21.zip } # Rules to gen a SliTaz package suitable for Tazpkg. diff -r b4b992b90e4a -r aebcbcedcc6b pidgin-facebookchat/receipt --- a/pidgin-facebookchat/receipt Thu May 13 22:41:03 2010 +0200 +++ b/pidgin-facebookchat/receipt Thu May 13 22:57:11 2010 +0200 @@ -30,9 +30,11 @@ # Pidgin icons mkdir -p $fs/usr/share/pixmaps/pidgin/protocols + [ -f $SOURCES_REPOSITORY/facebook_icons.zip ] || \ wget http://pidgin-facebookchat.googlecode.com/files/facebook_icons.zip mkdir facebook_icons - unzip -o facebook_icons.zip -d $fs/usr/share/pixmaps/pidgin/protocols + unzip -o $SOURCES_REPOSITORY/facebook_icons.zip \ + -d $fs/usr/share/pixmaps/pidgin/protocols } # clean commands for Tazwok. diff -r b4b992b90e4a -r aebcbcedcc6b prboom/receipt --- a/prboom/receipt Thu May 13 22:41:03 2010 +0200 +++ b/prboom/receipt Thu May 13 22:57:11 2010 +0200 @@ -38,7 +38,9 @@ cp -a $_pkg/usr/share/games $fs/usr/share echo "Downloading game data : doom1.wad" - wget http://people.slitaz.org/~mallory/stuff/prboom/doom1.wad -O $fs/usr/share/games/doom/doom1.wad + [ -f $SOURCES_REPOSITORY/doom1.wad ] || + wget http://people.slitaz.org/~mallory/stuff/prboom/doom1.wad -P $SOURCES_REPOSITORY + cp $SOURCES_REPOSITORY/doom1.wad $fs/usr/share/games/doom echo "Copying metadata" cp stuff/prboom.desktop $fs/usr/share/applications diff -r b4b992b90e4a -r aebcbcedcc6b rgzip/receipt --- a/rgzip/receipt Thu May 13 22:41:03 2010 +0200 +++ b/rgzip/receipt Thu May 13 22:57:11 2010 +0200 @@ -16,7 +16,8 @@ { mkdir $src cd $src - [ -f rgzip.c ] || wget $FILE + [ -f $SOURCES_REPOSITORY/rgzip.c ] || wget $FILE -P $SOURCES_REPOSITORY + cp $SOURCES_REPOSITORY/rgzip.c . make rgzip }