wok annotate 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
rev   line source
gokhlayeh@7998 1 # SliTaz package receipt.
gokhlayeh@7998 2
gokhlayeh@7998 3 PACKAGE="tazwok-experimental"
gokhlayeh@7998 4 VERSION="0.0.2"
gokhlayeh@7998 5 CATEGORY="base-system"
gokhlayeh@7998 6 SHORT_DESC="SliTaz sources and binaries packages cooker."
gokhlayeh@7998 7 MAINTAINER="gokhlayeh@slitaz.org"
gokhlayeh@7998 8 DEPENDS="busybox libtaz"
gokhlayeh@7998 9 SUGGESTED="tazchroot"
slaxemulator@8001 10 TARBALL="$PACKAGE-$VERSION.tar.gz"
gokhlayeh@7998 11 WEB_SITE="http://www.slitaz.org/"
gokhlayeh@7998 12 #WGET_URL="http://mirror.slitaz.org/sources/base-files/$TARBALL"
gokhlayeh@7998 13 # using an hg URL because tarball is not avaible at this moment
slaxemulator@8001 14 WGET="http://hg.slitaz.org/$PACKAGE/archive/$VERSION.tar.gz"
gokhlayeh@7998 15 CONFIG_FILES="/etc/slitaz/tazwok.conf"
gokhlayeh@7998 16 TAGS="slitaz"
gokhlayeh@7998 17
slaxemulator@8001 18 compile_rules()
slaxemulator@8001 19 {
slaxemulator@8001 20 if [ -f $SOURCES_REPOSITORY/$TARBALL ]; then
slaxemulator@8001 21 tar xjf $SOURCES_REPOSITORY/$TARBALL
slaxemulator@8001 22 else
slaxemulator@8001 23 [ -L /usr/bin/wget ] && tazpkg get-install wget --forced
slaxemulator@8001 24 wget -O $SOURCES_REPOSITORY/$TARBALL --no-check-certificate "$WGET"
slaxemulator@8001 25 tar xjf $SOURCES_REPOSITORY/$TARBALL
slaxemulator@8001 26 fi
slaxemulator@8001 27 }
slaxemulator@8001 28
gokhlayeh@7998 29 # Rules to gen a SliTaz package suitable for Tazpkg.
gokhlayeh@7998 30 genpkg_rules()
gokhlayeh@7998 31 {
gokhlayeh@7998 32 mkdir -p $fs/usr/bin $fs/usr/share/doc/tazwok \
gokhlayeh@7998 33 $fs/etc/slitaz
gokhlayeh@7998 34 # Copy Tazwok, doc and examples.
gokhlayeh@7998 35 cp -a $src/tazwok $fs/usr/bin
gokhlayeh@7998 36 chmod 755 $fs/usr/bin/tazwok
gokhlayeh@7998 37 cp -a $src/doc/* $fs/usr/share/doc/tazwok
gokhlayeh@7998 38 cp -a $src/applications $fs/usr/share
gokhlayeh@7998 39 # Config file
gokhlayeh@7998 40 cp -a $src/examples/tazwok.conf $fs/etc/slitaz
gokhlayeh@7998 41 cp -a $src/examples/config.site $fs/etc
gokhlayeh@7998 42 }
gokhlayeh@8000 43
gokhlayeh@8000 44 TAZBB_NO_INSTALL="Not ready to be used on tank yet."