wok view utox/receipt @ rev 24304

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Jan 17 11:01:52 2022 +0000 (2022-01-17)
parents 7d04a38549a2
children fa5a8f0acc3b
line source
1 # SliTaz package receipt.
3 PACKAGE="utox"
4 VERSION="20140903"
5 CATEGORY="network"
6 SHORT_DESC="A New Kind of Instant Messaging"
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL"
9 TARBALL="${PACKAGE}-${VERSION}.tar.xz"
10 WEB_SITE="https://utox.org/"
11 WGET_URL="https://jenkins.libtoxcore.so/job/uTox_linux_i686/lastSuccessfulBuild/artifact/utox/utox_linux_i686.tar.xz"
13 DEPENDS="dbus bzlib xorg-libX11 gtk+"
14 BUILD_DEPENDS="wget"
16 # What is the latest version available today?
17 current_version()
18 {
19 wget -O - https://github.com/uTox/uTox/releases 2>/dev/null | \
20 sed '/archive.*tar/!d;s|.*/[A-Za-z_-]*\(.*\).tar.*|\1|;q'
21 }
23 # Rules to gen a SliTaz package suitable for Tazpkg.
24 genpkg_rules()
25 {
26 install -D ${src}/${TARBALL} ${fs}/usr/bin/utox
27 }