From d1d75c37c446dfbe9cbae503300e17f2973dbf44 Mon Sep 17 00:00:00 2001 From: root Date: Mon, 17 Sep 2012 00:03:15 +0000 Subject: Mon Sep 17 00:03:15 UTC 2012 --- community/consonance/PKGBUILD | 36 +++++++++++++++++++++++++++++++++ community/consonance/consonance.install | 14 +++++++++++++ community/consonance/libnotify.patch | 18 +++++++++++++++++ 3 files changed, 68 insertions(+) create mode 100644 community/consonance/PKGBUILD create mode 100644 community/consonance/consonance.install create mode 100644 community/consonance/libnotify.patch (limited to 'community/consonance') 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 +# Contributor: Auguste Pop +# Contributor: boenki +# Contributor: sujith_m82 + +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 */ -- cgit v1.2.3-54-g00ecf