wok view 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 source
1 # SliTaz package receipt.
3 PACKAGE="tazchroot"
4 VERSION="0.0.1"
5 CATEGORY="base-system"
6 SHORT_DESC="Slitaz tool to manage chroot"
7 MAINTAINER="gokhlayeh@slitaz.org"
8 TARBALL="$PACKAGE-$VERSION.tar.gz"
9 WEB_SITE="http://www.slitaz.org/"
10 #WGET_URL="http://mirror.slitaz.org/sources/base-files/$TARBALL"
11 # using an hg URL because tarball is not avaible at this moment
12 WGET="http://hg.slitaz.org/$PACKAGE/archive/$VERSION.tar.gz"
13 TAGS="slitaz"
15 compile_rules()
16 {
17 if [ -f $SOURCES_REPOSITORY/$TARBALL ]; then
18 tar xjf $SOURCES_REPOSITORY/$TARBALL
19 else
20 [ -L /usr/bin/wget ] && tazpkg get-install wget --forced
21 wget -O $SOURCES_REPOSITORY/$TARBALL --no-check-certificate "$WGET"
22 tar xjf $SOURCES_REPOSITORY/$TARBALL
23 fi
24 }
26 # Rules to gen a SliTaz package suitable for Tazpkg.
27 genpkg_rules()
28 {
29 mkdir -p $fs/usr/bin $fs/etc/slitaz \
30 $fs/var/lib/tazchroot
31 cp -a $src/tazchroot $fs/usr/bin
32 chmod 755 $fs/usr/bin/tazchroot
33 cp -a $src/tazchroot.conf $fs/etc/slitaz
34 cp -a $src/scripts/* $fs/var/lib/tazchroot
35 }