wok view consonance/receipt @ rev 24540

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Feb 23 16:54:57 2022 +0000 (2022-02-23)
parents 3aa630bcbaec
children ad9008f821da
line source
1 # SliTaz package receipt.
3 PACKAGE="consonance"
4 VERSION="0.5"
5 CATEGORY="multimedia"
6 TAGS="player audio music mp3 ogg"
7 SHORT_DESC="A lightwight music manager."
8 MAINTAINER="jozee@slitaz.org"
9 LICENSE="GPL3"
10 WEB_SITE="http://sites.google.com/site/consonancemanager/"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 WGET_URL="http://cloud.github.com/downloads/sujith/consonance/$TARBALL"
15 DEPENDS="curl dbus-glib flac gcc83-lib-base libao libcddb libcdio-paranoia
16 libmad libmodplug libnotify libsndfile libvorbis sqlite taglib xcb-util"
17 BUILD_DEPENDS="alsa-lib-dev curl-dev dbus-glib-dev flac-dev gcc83 gtk+-dev
18 libao-dev libcddb-dev libcdio-dev libcdio-paranoia-dev libidn-dev
19 libmad-dev libmodplug-dev libnotify-dev libogg-dev libsndfile-dev
20 libvorbis-dev sqlite-dev taglib-dev"
22 # What is the latest version available today?
23 current_version()
24 {
25 wget -O - https://github.com/tgalal/consonance/tags 2>/dev/null | \
26 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
27 }
29 # Rules to configure and make the package.
30 compile_rules()
31 {
32 sed -i 's|cdio/cdda|cdio/paranoia/cdda|' \
33 src/cdda.h
34 sed -i 's/.*= notify_notification_new_with_status_icon/#define notify_notification_new_with_status_icon(a,b,c,d) notify_notification_new(a,b,gtk_status_icon_get_icon_name(c))\n&/' \
35 src/statusicon.c
37 export LDFLAGS="$LDFLAGS -lstdc++"
39 ./configure \
40 --prefix=/usr \
41 $CONFIGURE_ARGS &&
42 make -j 1 &&
43 make DESTDIR=$DESTDIR install
44 }
46 # Rules to gen a SliTaz package suitable for Tazpkg.
47 genpkg_rules()
48 {
49 mkdir -p $fs/usr/lib
50 mkdir -p $fs/usr/share
51 mkdir -p $fs/usr/share/pixmaps
53 cp -a $install/usr/bin $fs/usr
54 cp -a $install/usr/share/$PACKAGE $fs/usr/share
55 cp -a $install/usr/share/$PACKAGE/data/consonance.png \
56 $fs/usr/share/pixmaps
57 }