wok-4.x diff tazwok-experimental/receipt @ rev 8001
Made libtaz, tazchroot, and tazwok-experimental save source as PACKAGE-VERSION.tar.gz instead of VERSION.tar.gz.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Tue Jan 18 12:21:11 2011 +0000 (2011-01-18) |
parents | b50a25f5297b |
children | 5f24a1ad24f7 |
line diff
1.1 --- a/tazwok-experimental/receipt Tue Jan 18 17:46:55 2011 +0100 1.2 +++ b/tazwok-experimental/receipt Tue Jan 18 12:21:11 2011 +0000 1.3 @@ -7,15 +7,25 @@ 1.4 MAINTAINER="gokhlayeh@slitaz.org" 1.5 DEPENDS="busybox libtaz" 1.6 SUGGESTED="tazchroot" 1.7 -#TARBALL="$PACKAGE-$VERSION.tar.gz" 1.8 -TARBALL="$VERSION.tar.gz" 1.9 +TARBALL="$PACKAGE-$VERSION.tar.gz" 1.10 WEB_SITE="http://www.slitaz.org/" 1.11 #WGET_URL="http://mirror.slitaz.org/sources/base-files/$TARBALL" 1.12 # using an hg URL because tarball is not avaible at this moment 1.13 -WGET_URL="http://hg.slitaz.org/$PACKAGE/archive/$TARBALL" 1.14 +WGET="http://hg.slitaz.org/$PACKAGE/archive/$VERSION.tar.gz" 1.15 CONFIG_FILES="/etc/slitaz/tazwok.conf" 1.16 TAGS="slitaz" 1.17 1.18 +compile_rules() 1.19 +{ 1.20 + if [ -f $SOURCES_REPOSITORY/$TARBALL ]; then 1.21 + tar xjf $SOURCES_REPOSITORY/$TARBALL 1.22 + else 1.23 + [ -L /usr/bin/wget ] && tazpkg get-install wget --forced 1.24 + wget -O $SOURCES_REPOSITORY/$TARBALL --no-check-certificate "$WGET" 1.25 + tar xjf $SOURCES_REPOSITORY/$TARBALL 1.26 + fi 1.27 +} 1.28 + 1.29 # Rules to gen a SliTaz package suitable for Tazpkg. 1.30 genpkg_rules() 1.31 {