summaryrefslogtreecommitdiff
path: root/community/lxmusic
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-06-04 00:01:23 +0000
committerroot <root@rshg054.dnsready.net>2012-06-04 00:01:23 +0000
commit1e6588d64f084decf287a58b7ff93ff0ce4d0446 (patch)
tree29bf5b8778e1eb67871d9e6e8bb6e205bdde5db7 /community/lxmusic
parent80053e720288b6205a59c52c1b31c14a0f830989 (diff)
Mon Jun 4 00:01:23 UTC 2012
Diffstat (limited to 'community/lxmusic')
-rw-r--r--community/lxmusic/PKGBUILD30
-rw-r--r--community/lxmusic/libnotify-0.7.patch27
2 files changed, 57 insertions, 0 deletions
diff --git a/community/lxmusic/PKGBUILD b/community/lxmusic/PKGBUILD
new file mode 100644
index 000000000..197adf4ec
--- /dev/null
+++ b/community/lxmusic/PKGBUILD
@@ -0,0 +1,30 @@
+# $Id: PKGBUILD 71871 2012-06-02 14:59:08Z bpiotrowski $
+# Maintainer: Bartłomiej Piotrowski <nospam@bpiotrowski.pl>
+# Contributor: Marcus Schulderinsky <mmaacceess at gmail dot com>
+
+pkgname=lxmusic
+pkgver=0.4.5
+pkgrel=1
+pkgdesc='Lightweight XMMS2 client'
+arch=('i686' 'x86_64')
+url="http://lxde.org/"
+license=('GPL')
+groups=('lxde')
+depends=('gtk2' 'xmms2')
+makedepends=('pkgconfig' 'intltool')
+source=(http://downloads.sourceforge.net/lxde/$pkgname-$pkgver.tar.gz
+ libnotify-0.7.patch)
+md5sums=('9c3e5eb636f05e8c190d359cd0c8b679'
+ '770c63254a7369613daeb6d1260d123f')
+
+build() {
+ cd $srcdir/$pkgname-$pkgver
+ patch -Np1 -i $srcdir/libnotify-0.7.patch
+ ./configure --prefix=/usr
+ make
+}
+
+package() {
+ cd $srcdir/$pkgname-$pkgver
+ make DESTDIR=$pkgdir install
+}
diff --git a/community/lxmusic/libnotify-0.7.patch b/community/lxmusic/libnotify-0.7.patch
new file mode 100644
index 000000000..01f513de4
--- /dev/null
+++ b/community/lxmusic/libnotify-0.7.patch
@@ -0,0 +1,27 @@
+Upstream:
+https://sourceforge.net/tracker/?func=detail&aid=3529198&group_id=180858&atid=894869
+Index: lxmusic-0.4.5/src/lxmusic-notify.c
+===================================================================
+--- lxmusic-0.4.5.orig/src/lxmusic-notify.c
++++ lxmusic-0.4.5/src/lxmusic-notify.c
+@@ -84,9 +84,20 @@ LXMusicNotification lxmusic_do_notify_pr
+ else
+ g_string_append( message, title );
+ struct _LXMusicNotification *lxn = g_new ( struct _LXMusicNotification, 1);
++#ifdef NOTIFY_CHECK_VERSION
++#if NOTIFY_CHECK_VERSION (0, 7, 0)
++ lxn->notify = notify_notification_new (summary, message->str, NULL);
++#else
+ lxn->notify = notify_notification_new (summary, message->str, NULL, NULL);
++#endif
++#else
++ lxn->notify = notify_notification_new (summary, message->str, NULL, NULL);
++#endif
+ notify_notification_set_urgency (lxn->notify, NOTIFY_URGENCY_NORMAL);
++#if !defined(NOTIFY_VERSION_MINOR) || (NOTIFY_VERSION_MAJOR == 0 && NOTIFY_VERSION_MINOR < 7)
++ notify_notification_attach_to_status_icon(notify, priv->statusIcon);
+ notify_notification_attach_to_status_icon( lxn->notify, status_icon );
++#endif
+ notify_notification_set_timeout (lxn->notify, NOTIFY_EXPIRES_DEFAULT);
+ g_string_free( message, TRUE );
+ return lxn;