mirror of
https://github.com/Ponce/slackbuilds
synced 2024-09-29 17:37:55 +02:00
audio/lxmusic: Updated for version 0.4.6, added license.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
This commit is contained in:
parent
17803dcb7e
commit
b2c3d8f250
3 changed files with 28 additions and 36 deletions
|
@ -1,27 +0,0 @@
|
|||
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;
|
|
@ -2,12 +2,31 @@
|
|||
|
||||
# Slackware build script for lxmusic
|
||||
|
||||
# Written by Matteo Bernardini <ponce@slackbuilds.org>
|
||||
# Copyright 2010-2014 Matteo Bernardini <ponce@slackbuilds.org>, Pisa, Italy
|
||||
# All rights reserved.
|
||||
#
|
||||
# Redistribution and use of this script, with or without modification, is
|
||||
# permitted provided that the following conditions are met:
|
||||
#
|
||||
# 1. Redistributions of this script must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED
|
||||
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
|
||||
# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
||||
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
|
||||
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
|
||||
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
# based on slackbuilds.org default template
|
||||
# generated by Grissiom's sbo-dev-helper
|
||||
|
||||
PRGNAM=lxmusic
|
||||
VERSION=${VERSION:-0.4.5}
|
||||
VERSION=${VERSION:-0.4.6}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
|
@ -53,10 +72,6 @@ find -L . \
|
|||
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
|
||||
-exec chmod 644 {} \;
|
||||
|
||||
# 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" \
|
||||
|
@ -67,11 +82,15 @@ CXXFLAGS="$SLKCFLAGS" \
|
|||
--sysconfdir=/etc \
|
||||
--localstatedir=/var \
|
||||
--docdir=/usr/doc/$PRGNAM-$VERSION \
|
||||
--mandir=/usr/man \
|
||||
--build=$ARCH-slackware-linux
|
||||
|
||||
make
|
||||
make install-strip DESTDIR=$PKG
|
||||
|
||||
find $PKG/usr/man -type f -exec gzip -9 {} \;
|
||||
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
|
||||
|
||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cp -a COPYING NEWS README \
|
||||
$PKG/usr/doc/$PRGNAM-$VERSION || true
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
PRGNAM="lxmusic"
|
||||
VERSION="0.4.5"
|
||||
VERSION="0.4.6"
|
||||
HOMEPAGE="http://wiki.lxde.org/en/LXMusic"
|
||||
DOWNLOAD="http://downloads.sourceforge.net/lxde/lxmusic-0.4.5.tar.gz"
|
||||
MD5SUM="9c3e5eb636f05e8c190d359cd0c8b679"
|
||||
DOWNLOAD="http://downloads.sf.net/lxde/lxmusic-0.4.6.tar.xz"
|
||||
MD5SUM="38fc31793b11c43b6a8fda70faedfd54"
|
||||
DOWNLOAD_x86_64=""
|
||||
MD5SUM_x86_64=""
|
||||
REQUIRES="xmms2"
|
||||
|
|
Loading…
Reference in a new issue