From 8fbc0076a4827ddc6af92e0b9daa4c4c31450808 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 19 Jul 2013 01:10:32 -0700 Subject: Fri Jul 19 01:09:18 PDT 2013 --- community/consonance/PKGBUILD | 40 ++++++++++++++++++++++++++++++++ community/consonance/cdio-includes.patch | 12 ++++++++++ community/consonance/consonance.install | 14 +++++++++++ community/consonance/libnotify.patch | 18 ++++++++++++++ 4 files changed, 84 insertions(+) create mode 100644 community/consonance/PKGBUILD create mode 100644 community/consonance/cdio-includes.patch 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..f70d45618 --- /dev/null +++ b/community/consonance/PKGBUILD @@ -0,0 +1,40 @@ +# $Id: PKGBUILD 82327 2013-01-15 11:34:58Z allan $ +# Maintainer: Jonathan Steel +# Contributor: Auguste Pop +# Contributor: boenki +# Contributor: sujith_m82 + +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 ++#include + #include + + 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 */ -- cgit v1.2.3-54-g00ecf