diff options
author | ponce <matteo.bernardini@gmail.com> | 2012-07-24 08:36:13 +0200 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2012-08-21 08:55:36 -0500 |
commit | 844e905dbc2164894ae473f0ee4999be504cdcd2 (patch) | |
tree | 090a7b70546ca19883aacaad2979b86b3f71edfe /audio | |
parent | f6e0879180578081926ec957da493143d20d8a96 (diff) | |
download | slackbuilds-844e905dbc2164894ae473f0ee4999be504cdcd2.tar.gz |
audio/lxmusic: Updated for version 0.4.5.
Also added a patch for libnotify-0.7.x.
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'audio')
-rw-r--r-- | audio/lxmusic/README | 2 | ||||
-rw-r--r-- | audio/lxmusic/lxmusic-0.4.5-libnotify-0.7.patch | 27 | ||||
-rw-r--r-- | audio/lxmusic/lxmusic.SlackBuild | 8 | ||||
-rw-r--r-- | audio/lxmusic/lxmusic.info | 6 |
4 files changed, 36 insertions, 7 deletions
diff --git a/audio/lxmusic/README b/audio/lxmusic/README index 7763bb8481..7173dd227a 100644 --- a/audio/lxmusic/README +++ b/audio/lxmusic/README @@ -3,5 +3,3 @@ lxmusic (minimalist music player for LXDE) LXMusic is based on xmms2, which is lightweight and has server/client design. LXMusic has very few features, it can do nothing more than just playing a list of music files. - -This requires xmms2. diff --git a/audio/lxmusic/lxmusic-0.4.5-libnotify-0.7.patch b/audio/lxmusic/lxmusic-0.4.5-libnotify-0.7.patch new file mode 100644 index 0000000000..01f513de4c --- /dev/null +++ b/audio/lxmusic/lxmusic-0.4.5-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; diff --git a/audio/lxmusic/lxmusic.SlackBuild b/audio/lxmusic/lxmusic.SlackBuild index 1f3d9d9c78..aa2a6091a6 100644 --- a/audio/lxmusic/lxmusic.SlackBuild +++ b/audio/lxmusic/lxmusic.SlackBuild @@ -7,7 +7,7 @@ # generated by Grissiom's sbo-dev-helper PRGNAM=lxmusic -VERSION=${VERSION:-20111224_ce96168} +VERSION=${VERSION:-0.4.5} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -53,7 +53,11 @@ find . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \; -sh autogen.sh +# Patch to use it with libnotify 0.7.x +# Thanks to gentoo people +patch -p1 < $CWD/lxmusic-0.4.5-libnotify-0.7.patch + +sh autogen.sh || true CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ diff --git a/audio/lxmusic/lxmusic.info b/audio/lxmusic/lxmusic.info index ccf453f487..46b9950a0e 100644 --- a/audio/lxmusic/lxmusic.info +++ b/audio/lxmusic/lxmusic.info @@ -1,8 +1,8 @@ PRGNAM="lxmusic" -VERSION="20111224_ce96168" +VERSION="0.4.5" HOMEPAGE="http://wiki.lxde.org/en/LXMusic" -DOWNLOAD="http://ponce.cc/slackware/sources/repo/lxde/lxmusic-20111224_ce96168.tar.xz" -MD5SUM="05500f8c47e48268a007a3127b71e3d6" +DOWNLOAD="http://downloads.sourceforge.net/lxde/lxmusic-0.4.5.tar.gz" +MD5SUM="9c3e5eb636f05e8c190d359cd0c8b679" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="xmms2" |