wok-6.x 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 |
files | libtaz/receipt tazchroot/receipt tazwok-experimental/receipt |
line diff
1.1 --- a/libtaz/receipt Tue Jan 18 17:46:55 2011 +0100 1.2 +++ b/libtaz/receipt Tue Jan 18 12:21:11 2011 +0000 1.3 @@ -5,15 +5,25 @@ 1.4 CATEGORY="base-system" 1.5 SHORT_DESC="Slitaz generic library." 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 CONFIG_FILES="/etc/slitaz/slitaz.conf" 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 {
2.1 --- a/tazchroot/receipt Tue Jan 18 17:46:55 2011 +0100 2.2 +++ b/tazchroot/receipt Tue Jan 18 12:21:11 2011 +0000 2.3 @@ -5,14 +5,24 @@ 2.4 CATEGORY="base-system" 2.5 SHORT_DESC="Slitaz tool to manage chroot" 2.6 MAINTAINER="gokhlayeh@slitaz.org" 2.7 -#TARBALL="$PACKAGE-$VERSION.tar.gz" 2.8 -TARBALL="$VERSION.tar.gz" 2.9 +TARBALL="$PACKAGE-$VERSION.tar.gz" 2.10 WEB_SITE="http://www.slitaz.org/" 2.11 #WGET_URL="http://mirror.slitaz.org/sources/base-files/$TARBALL" 2.12 # using an hg URL because tarball is not avaible at this moment 2.13 -WGET_URL="http://hg.slitaz.org/$PACKAGE/archive/$TARBALL" 2.14 +WGET="http://hg.slitaz.org/$PACKAGE/archive/$VERSION.tar.gz" 2.15 TAGS="slitaz" 2.16 2.17 +compile_rules() 2.18 +{ 2.19 + if [ -f $SOURCES_REPOSITORY/$TARBALL ]; then 2.20 + tar xjf $SOURCES_REPOSITORY/$TARBALL 2.21 + else 2.22 + [ -L /usr/bin/wget ] && tazpkg get-install wget --forced 2.23 + wget -O $SOURCES_REPOSITORY/$TARBALL --no-check-certificate "$WGET" 2.24 + tar xjf $SOURCES_REPOSITORY/$TARBALL 2.25 + fi 2.26 +} 2.27 + 2.28 # Rules to gen a SliTaz package suitable for Tazpkg. 2.29 genpkg_rules() 2.30 {
3.1 --- a/tazwok-experimental/receipt Tue Jan 18 17:46:55 2011 +0100 3.2 +++ b/tazwok-experimental/receipt Tue Jan 18 12:21:11 2011 +0000 3.3 @@ -7,15 +7,25 @@ 3.4 MAINTAINER="gokhlayeh@slitaz.org" 3.5 DEPENDS="busybox libtaz" 3.6 SUGGESTED="tazchroot" 3.7 -#TARBALL="$PACKAGE-$VERSION.tar.gz" 3.8 -TARBALL="$VERSION.tar.gz" 3.9 +TARBALL="$PACKAGE-$VERSION.tar.gz" 3.10 WEB_SITE="http://www.slitaz.org/" 3.11 #WGET_URL="http://mirror.slitaz.org/sources/base-files/$TARBALL" 3.12 # using an hg URL because tarball is not avaible at this moment 3.13 -WGET_URL="http://hg.slitaz.org/$PACKAGE/archive/$TARBALL" 3.14 +WGET="http://hg.slitaz.org/$PACKAGE/archive/$VERSION.tar.gz" 3.15 CONFIG_FILES="/etc/slitaz/tazwok.conf" 3.16 TAGS="slitaz" 3.17 3.18 +compile_rules() 3.19 +{ 3.20 + if [ -f $SOURCES_REPOSITORY/$TARBALL ]; then 3.21 + tar xjf $SOURCES_REPOSITORY/$TARBALL 3.22 + else 3.23 + [ -L /usr/bin/wget ] && tazpkg get-install wget --forced 3.24 + wget -O $SOURCES_REPOSITORY/$TARBALL --no-check-certificate "$WGET" 3.25 + tar xjf $SOURCES_REPOSITORY/$TARBALL 3.26 + fi 3.27 +} 3.28 + 3.29 # Rules to gen a SliTaz package suitable for Tazpkg. 3.30 genpkg_rules() 3.31 {