wok-6.x view tazirc/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 ab43b9f8e081
children
line source
1 # SliTaz package receipt.
3 PACKAGE="tazirc"
4 VERSION="22"
5 CATEGORY="network"
6 SHORT_DESC="SliTaz IRC Client and Log Bot."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="BSD"
9 WEB_SITE="http://www.slitaz.org/"
10 TARBALL="$PACKAGE-$VERSION.tar.bz2"
11 WGET_URL="http://hg.slitaz.org/$PACKAGE/archive/$VERSION.tar.bz2"
12 HOST_ARCH="i486 arm"
14 current_version()
15 {
16 wget -O - http://hg.slitaz.org/$PACKAGE/ 2>/dev/null | \
17 sed '/^Changeset/!d;s|.*">|http://hg.slitaz.org/'$PACKAGE'/rev/|;s|<.*||' | \
18 xargs wget -O - 2>/dev/null | sed '/rev /!d;s|.*rev ||;s| .*||'
19 }
21 # Rules to configure and make the package.
22 compile_rules()
23 {
24 make && make DESTDIR=$install install
25 }
27 # Rules to gen a SliTaz package suitable for Tazpkg.
28 genpkg_rules()
29 {
30 mkdir -p $fs
31 cp -a $install/* $fs
32 }