wok-next rev 10760
jstetris: get source in $SOURCES_REPOSITORY (again)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue May 31 12:03:09 2011 +0200 (2011-05-31) |
parents | 675153fbaf35 |
children | 9166aeb21102 |
files | jstetris/receipt |
line diff
1.1 --- a/jstetris/receipt Tue May 31 11:55:01 2011 +0200 1.2 +++ b/jstetris/receipt Tue May 31 12:03:09 2011 +0200 1.3 @@ -12,8 +12,12 @@ 1.4 { 1.5 mkdir $src 1.6 cd $src 1.7 - wget -O index.html $WEB_SITE 1.8 - wget $(dirname $WEB_SITE)/JsTetris.js 1.9 + _TARBALL=$PACKAGE-$VERSION.tar.gz 1.10 + if [ ! -s ${SOURCE_REPOSITORY:-$SRC}/$_TARBALL ]; then 1.11 + wget -O index.html $WEB_SITE 1.12 + wget $(dirname $WEB_SITE)/JsTetris.js 1.13 + tar cvzf ${SOURCE_REPOSITORY:-$SRC}/$_TARBALL index.html JsTetris.js 1.14 + fi 1.15 } 1.16 1.17 # Rules to gen a SliTaz package suitable for Tazpkg.