wok-6.x view tazwok/receipt @ rev 24069

Add some current_version()
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Jul 06 11:01:20 2021 +0000 (2021-07-06)
parents 1eac19b43f27
children
line source
1 # SliTaz package receipt.
3 PACKAGE="tazwok"
4 VERSION="557"
5 CATEGORY="base-system"
6 SHORT_DESC="SliTaz sources and binaries packages cooker."
7 MAINTAINER="gokhlayeh@slitaz.org"
8 LICENSE="BSD"
9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
10 WEB_SITE="http://www.slitaz.org/"
11 WGET_URL="http://hg.slitaz.org/tazwok/archive/$VERSION.tar.bz2"
12 TAGS="slitaz"
14 DEPENDS="busybox slitaz-base-files"
16 current_version()
17 {
18 wget -O - http://hg.slitaz.org/$PACKAGE/ 2>/dev/null | \
19 sed '/^Changeset/!d;s|.*">|http://hg.slitaz.org/'$PACKAGE'/rev/|;s|<.*||' | \
20 xargs wget -O - 2>/dev/null | sed '/rev /!d;s|.*rev ||;s| .*||'
21 }
23 # Rules to gen a SliTaz package suitable for Tazpkg.
24 genpkg_rules()
25 {
26 mkdir -p $fs/usr/bin $fs/usr/share/doc/tazwok \
27 $fs/etc/slitaz $fs/usr/share/slitaz/web-bb \
28 $fs/usr/lib/slitaz/chroot-scripts
29 # Copy Tazwok, doc and examples.
30 cp -a $src/tazwok $fs/usr/bin
31 chmod 755 $fs/usr/bin/tazwok
32 cp -a $src/doc/* $fs/usr/share/doc/tazwok
33 cp -a $src/applications $fs/usr/share
34 # Config file
35 cp -a $src/examples/tazwok.conf $fs/etc/slitaz
36 cp -a $src/examples/config.site $fs/etc
37 # Webserver stuff
38 cp -a $src/web/* $fs/usr/share/slitaz/web-bb
39 # Chroot scripts
40 cp -a $src/chroot-scripts $fs/usr/lib/slitaz/chroot-scripts/tazwok
41 # Build bot for tazwok
42 cp -a $src/examples/tazbb $fs/usr/bin
43 }