wok-current view transmission-remote-gtk/receipt @ rev 24385

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Feb 07 11:38:23 2022 +0000 (2022-02-07)
parents 6135577f4d08
children 0f92b8cc8086
line source
1 # SliTaz package receipt.
3 PACKAGE="transmission-remote-gtk"
4 VERSION="1.1.1"
5 CATEGORY="network"
6 SHORT_DESC="GTK remote control for the Transmission BitTorrent client"
7 MAINTAINER="devl547@gmail.com"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="https://github.com/transmission-remote-gtk/transmission-remote-gtk"
11 WGET_URL="http://transmission-remote-gtk.googlecode.com/files/$TARBALL"
13 DEPENDS="gtk+ json-glib curl libnotify libunique"
14 BUILD_DEPENDS="gtk+-dev json-glib-dev curl-dev libnotify-dev \
15 libunique-dev"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - $WEB_SITE/releases 2>/dev/null | \
21 sed '/archive.*tar/!d;s|.*/[A-Za-z_-]*\(.*\).tar.*|\1|;q'
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 cd $src
28 ./configure \
29 --enable-gtk2 \
30 $CONFIGURE_ARGS &&
31 make &&
32 make DESTDIR=$DESTDIR install
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
36 genpkg_rules()
37 {
38 mkdir -p $fs/usr/share
39 cp -a $install/usr/bin $fs/usr
40 cp -a $install/usr/share/icons $fs/usr/share
41 cp -a $install/usr/share/applications $fs/usr/share
42 }