wok-current annotate consonance/receipt @ rev 23846

created recipe for python-random2
author Hans-G?nter Theisgen
date Sat Jun 13 15:49:44 2020 +0100 (2020-06-13)
parents 2353629d6cdb
children 544e47246b33
rev   line source
jozee@2662 1 # SliTaz package receipt.
jozee@2662 2
jozee@2662 3 PACKAGE="consonance"
jozee@2662 4 VERSION="0.5"
jozee@2662 5 CATEGORY="multimedia"
Hans-G?nter@21189 6 TAGS="player audio music mp3 ogg"
Hans-G?nter@21189 7 SHORT_DESC="A lightwight music manager."
jozee@2662 8 MAINTAINER="jozee@slitaz.org"
pascal@15202 9 LICENSE="GPL3"
Hans-G?nter@21189 10 WEB_SITE="http://sites.google.com/site/consonancemanager/"
Hans-G?nter@21189 11
jozee@2662 12 TARBALL="$PACKAGE-$VERSION.tar.gz"
jozee@2662 13 WGET_URL="http://cloud.github.com/downloads/sujith/consonance/$TARBALL"
jozee@2662 14
Hans-G?nter@23007 15 DEPENDS="curl dbus-glib flac gcc83-lib-base libao libcddb libcdio-paranoia
Hans-G?nter@23007 16 libmad libmodplug libnotify libsndfile libvorbis sqlite taglib xcb-util"
Hans-G?nter@23008 17 BUILD_DEPENDS="alsa-lib-dev curl-dev dbus-glib-dev flac-dev gcc83 gtk+-dev
Hans-G?nter@23008 18 libao-dev libcddb-dev libcdio-dev libcdio-paranoia-dev libidn-dev
Hans-G?nter@23008 19 libmad-dev libmodplug-dev libnotify-dev libogg-dev libsndfile-dev
Hans-G?nter@23008 20 libvorbis-dev sqlite-dev taglib-dev"
slaxemulator@10297 21
jozee@2662 22 # Rules to configure and make the package.
jozee@2662 23 compile_rules()
jozee@2662 24 {
Hans-G?nter@23006 25 sed -i 's|cdio/cdda|cdio/paranoia/cdda|' \
Hans-G?nter@23006 26 src/cdda.h
Hans-G?nter@23006 27 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&/' \
Hans-G?nter@23006 28 src/statusicon.c
Hans-G?nter@23006 29
Hans-G?nter@23006 30 export LDFLAGS="$LDFLAGS -lstdc++"
Hans-G?nter@21189 31
Hans-G?nter@21189 32 ./configure \
Hans-G?nter@21189 33 --prefix=/usr \
Hans-G?nter@21189 34 $CONFIGURE_ARGS &&
Hans-G?nter@21189 35 make -j 1 &&
slaxemulator@10297 36 make DESTDIR=$DESTDIR install
jozee@2662 37 }
jozee@2662 38
jozee@2662 39 # Rules to gen a SliTaz package suitable for Tazpkg.
jozee@2662 40 genpkg_rules()
jozee@2662 41 {
Hans-G?nter@21189 42 mkdir -p $fs/usr/lib
Hans-G?nter@21189 43 mkdir -p $fs/usr/share
Hans-G?nter@21189 44 mkdir -p $fs/usr/share/pixmaps
Hans-G?nter@21189 45
Hans-G?nter@21189 46 cp -a $install/usr/bin $fs/usr
Hans-G?nter@21189 47 cp -a $install/usr/share/$PACKAGE $fs/usr/share
Hans-G?nter@21189 48 cp -a $install/usr/share/$PACKAGE/data/consonance.png \
Hans-G?nter@23006 49 $fs/usr/share/pixmaps
jozee@2662 50 }