wok diff tazchroot/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 d2ff177c86d8
children 5f24a1ad24f7
line diff
     1.1 --- a/tazchroot/receipt	Tue Jan 18 15:50:33 2011 +0100
     1.2 +++ b/tazchroot/receipt	Tue Jan 18 12:21:11 2011 +0000
     1.3 @@ -5,14 +5,24 @@
     1.4  CATEGORY="base-system"
     1.5  SHORT_DESC="Slitaz tool to manage chroot"
     1.6  MAINTAINER="gokhlayeh@slitaz.org"
     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  TAGS="slitaz"
    1.16  
    1.17 +compile_rules()
    1.18 +{
    1.19 +		if [ -f $SOURCES_REPOSITORY/$TARBALL ]; then
    1.20 +			tar xjf $SOURCES_REPOSITORY/$TARBALL
    1.21 +		else
    1.22 +			[ -L /usr/bin/wget ] && tazpkg get-install wget --forced
    1.23 +			wget -O $SOURCES_REPOSITORY/$TARBALL --no-check-certificate "$WGET"
    1.24 +			tar xjf $SOURCES_REPOSITORY/$TARBALL
    1.25 +		fi
    1.26 +}
    1.27 +
    1.28  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.29  genpkg_rules()
    1.30  {