wok-current view consonance/receipt @ rev 24746

ncursesw-dev: add pkg config files (again)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Mar 16 11:02:39 2022 +0000 (2022-03-16)
parents 544e47246b33
children 4f225ad3e12e
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://raw.githubusercontent.com/patradebasish1987/Consonance/master/ChangeLog 2>/dev/null | sed 's|v||;q'
26 }
28 # Rules to configure and make the package.
29 compile_rules()
30 {
31 sed -i 's|cdio/cdda|cdio/paranoia/cdda|' \
32 src/cdda.h
33 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&/' \
34 src/statusicon.c
36 export LDFLAGS="$LDFLAGS -lstdc++"
38 ./configure \
39 --prefix=/usr \
40 $CONFIGURE_ARGS &&
41 make -j 1 &&
42 make DESTDIR=$DESTDIR install
43 }
45 # Rules to gen a SliTaz package suitable for Tazpkg.
46 genpkg_rules()
47 {
48 mkdir -p $fs/usr/lib
49 mkdir -p $fs/usr/share
50 mkdir -p $fs/usr/share/pixmaps
52 cp -a $install/usr/bin $fs/usr
53 cp -a $install/usr/share/$PACKAGE $fs/usr/share
54 cp -a $install/usr/share/$PACKAGE/data/consonance.png \
55 $fs/usr/share/pixmaps
56 }