wok-6.x view pidgin-musictracker/receipt @ rev 24427
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Feb 12 11:42:56 2022 +0000 (2022-02-12) |
parents | 04434444ef20 |
children | 1805f71c5d9f |
line source
1 # SliTaz package receipt.
3 PACKAGE="pidgin-musictracker"
4 VERSION="0.4.22"
5 CATEGORY="network"
6 SHORT_DESC="A Pidgin 'now playing' plugin to publicise the songs you are listening to."
7 MAINTAINER="ben@seawolfsanctuary.com"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
10 WEB_SITE="https://launchpad.net/pidgin-musictracker"
11 WGET_URL="$WEB_SITE/files/$TARBALL"
13 DEPENDS="pidgin pcre"
14 BUILD_DEPENDS="pidgin-dev gettext libpurple-dev pcre-dev dbus-glib-dev \
15 gtk+-dev glib-dev pkg-config libffi"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - $WEB_SITE 2>/dev/null | \
21 sed "/develop/d;/latest/d;/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 sed -i -e 's/g_value_array_free/g_array_unref/' -e 's/GValueArray/GArray/' \
28 -e '/g_value_array_get_nth/{N;s/GValue.*/status = g_array_index(sigstruct, gint, 0);/}' \
29 src/mpris.c
30 ./configure $CONFIGURE_ARGS &&
31 make && make DESTDIR=$DESTDIR install
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 mkdir -p $fs
38 cp -a $install/usr $fs/
39 }