wok-next diff opentyrian-classic/receipt @ 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 | da9a558411a8 |
children | c2b3198d2d91 |
line diff
1.1 --- a/opentyrian-classic/receipt Sat Sep 26 13:07:07 2009 +0000 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.