summaryrefslogtreecommitdiff
path: root/community/consonance
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-09-17 00:03:15 +0000
committerroot <root@rshg054.dnsready.net>2012-09-17 00:03:15 +0000
commitd1d75c37c446dfbe9cbae503300e17f2973dbf44 (patch)
treeb456fdc00f58cc15c7faf27ed12dfc9a0f8741b4 /community/consonance
parent50634781b5673a447953e357a63baa66515ec868 (diff)
Mon Sep 17 00:03:15 UTC 2012
Diffstat (limited to 'community/consonance')
-rw-r--r--community/consonance/PKGBUILD36
-rw-r--r--community/consonance/consonance.install14
-rw-r--r--community/consonance/libnotify.patch18
3 files changed, 68 insertions, 0 deletions
diff --git a/community/consonance/PKGBUILD b/community/consonance/PKGBUILD
new file mode 100644
index 000000000..eb5159c90
--- /dev/null
+++ b/community/consonance/PKGBUILD
@@ -0,0 +1,36 @@
+# $Id: PKGBUILD 76320 2012-09-15 20:11:01Z jsteel $
+# 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=9
+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' 'libcdio'
+ 'libmad' 'libmodplug' 'libnotify' 'libsndfile' 'sqlite3' 'taglib')
+install=$pkgname.install
+source=($url/releases-1/$pkgname-$pkgver.tar.gz
+ libnotify.patch)
+md5sums=('2a195dd2314f7b65cc57cc871a4c5a47'
+ 'caa1e8b41723950fd926bfefccbbd8ac')
+
+build() {
+ cd "$srcdir"/$pkgname-$pkgver
+
+ patch -Np1 -i "$srcdir"/libnotify.patch
+
+ ./configure --prefix=/usr
+
+ make
+}
+
+package() {
+ cd "$srcdir"/$pkgname-$pkgver
+
+ make DESTDIR="$pkgdir" install
+}
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 */