summaryrefslogtreecommitdiff
path: root/community/consonance
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-08-13 01:33:19 -0700
committerroot <root@rshg054.dnsready.net>2013-08-13 01:33:19 -0700
commit7a65a910b77ad191d69881098c47f9b0c852d92e (patch)
tree9564e611af1442f8952a8cbddb3b0ad25ed71aab /community/consonance
parent60da6abff6c9577a783d72865f11de7a585e912e (diff)
Tue Aug 13 01:31:08 PDT 2013
Diffstat (limited to 'community/consonance')
-rw-r--r--community/consonance/PKGBUILD40
-rw-r--r--community/consonance/cdio-includes.patch12
-rw-r--r--community/consonance/consonance.install14
-rw-r--r--community/consonance/libnotify.patch18
4 files changed, 84 insertions, 0 deletions
diff --git a/community/consonance/PKGBUILD b/community/consonance/PKGBUILD
new file mode 100644
index 000000000..f70d45618
--- /dev/null
+++ b/community/consonance/PKGBUILD
@@ -0,0 +1,40 @@
+# $Id: PKGBUILD 82327 2013-01-15 11:34:58Z allan $
+# Maintainer: Jonathan Steel <mail at jsteel dot org>
+# Contributor: Auguste Pop <auguste [at] gmail [dot] com>
+# Contributor: boenki <boenki at gmx dot de>
+# Contributor: sujith_m82 <m.sujith@gmail.com>
+
+pkgname=consonance
+pkgver=0.5.1
+pkgrel=10
+pkgdesc="A lightweight GTK+ music manager that aims to be fast, bloat-free and light on memory consumption"
+arch=('i686' 'x86_64')
+url="http://sites.google.com/site/consonancemanager"
+license=('GPL')
+depends=('curl' 'dbus-glib' 'desktop-file-utils' 'gtk2' 'libao' 'libmad'
+ 'libcdio-paranoia' 'libmodplug' 'libnotify' 'libsndfile' 'sqlite3'
+ 'taglib')
+install=$pkgname.install
+source=($url/releases-1/$pkgname-$pkgver.tar.gz
+ libnotify.patch
+ cdio-includes.patch)
+md5sums=('2a195dd2314f7b65cc57cc871a4c5a47'
+ 'caa1e8b41723950fd926bfefccbbd8ac'
+ '239b451ba8795f8c287e994a7e32d859')
+
+build() {
+ cd "$srcdir"/$pkgname-$pkgver
+
+ patch -Np1 -i "$srcdir"/libnotify.patch
+ patch -Np1 -i "$srcdir"/cdio-includes.patch
+
+ ./configure --prefix=/usr
+
+ make
+}
+
+package() {
+ cd "$srcdir"/$pkgname-$pkgver
+
+ make DESTDIR="$pkgdir" install
+}
diff --git a/community/consonance/cdio-includes.patch b/community/consonance/cdio-includes.patch
new file mode 100644
index 000000000..c570468b1
--- /dev/null
+++ b/community/consonance/cdio-includes.patch
@@ -0,0 +1,12 @@
+diff -upr consonance-0.5.1.orig/src/cdda.h consonance-0.5.1/src/cdda.h
+--- consonance-0.5.1.orig/src/cdda.h 2013-01-14 05:14:54.000000000 +0200
++++ consonance-0.5.1/src/cdda.h 2013-01-14 05:15:16.000000000 +0200
+@@ -18,7 +18,7 @@
+ #ifndef CDDA_H
+ #define CDDA_H
+
+-#include <cdio/cdda.h>
++#include <cdio/paranoia/cdda.h>
+ #include <cdio/cd_types.h>
+
+ struct con_cdda_decoder {
diff --git a/community/consonance/consonance.install b/community/consonance/consonance.install
new file mode 100644
index 000000000..f1474aee3
--- /dev/null
+++ b/community/consonance/consonance.install
@@ -0,0 +1,14 @@
+post_install()
+{
+ usr/bin/update-desktop-database -q
+}
+
+post_upgrade()
+{
+ post_install
+}
+
+post_remove()
+{
+ post_install
+}
diff --git a/community/consonance/libnotify.patch b/community/consonance/libnotify.patch
new file mode 100644
index 000000000..f59acbfd9
--- /dev/null
+++ b/community/consonance/libnotify.patch
@@ -0,0 +1,18 @@
+diff --git a/src/statusicon.c b/src/statusicon.c
+index f72e808..04efa58 100644
+--- a/src/statusicon.c
++++ b/src/statusicon.c
+@@ -47,11 +47,10 @@ void show_osd(struct con_win *cwin)
+
+ /* Create notification instance */
+
+- osd = notify_notification_new_with_status_icon(
++ osd = notify_notification_new(
+ cwin->cstate->curr_mobj->tags->title,
+ (const gchar *)body,
+- NULL,
+- GTK_STATUS_ICON(cwin->status_icon));
++ gtk_status_icon_get_icon_name(GTK_STATUS_ICON(cwin->status_icon)));
+ notify_notification_set_timeout(osd, OSD_TIMEOUT);
+
+ /* Add album art if set */