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