wok view consonance/receipt @ rev 25331
updated stella (6.6 -> 6.7)
author | Hans-G?nter Theisgen |
---|---|
date | Sat Jul 23 11:20:01 2022 +0100 (2022-07-23) |
parents | ad9008f821da |
children | 73f36875e5a7 |
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="https://download.tuxfamily.org/slitaz/sources/packages-cooking/${TARBALL:0:1}/$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 }