debian/0000755000000000000000000000000012057522566007200 5ustar debian/patches/0000755000000000000000000000000012057522246010622 5ustar debian/patches/add-man-page.patch0000644000000000000000000000426111645610576014067 0ustar Description: Add a man page for lxmms2. Author: Benjamin Drung --- /dev/null +++ lxmms2-0.1.3/lxmms2.1 @@ -0,0 +1,52 @@ +.\" Copyright (c) 2011, Benjamin Drung +.\" +.\" Permission to use, copy, modify, and/or distribute this software for any +.\" purpose with or without fee is hereby granted, provided that the above +.\" copyright notice and this permission notice appear in all copies. +.\" +.\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +.\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +.\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +.\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +.\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF +.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. +.\" +.TH LXMMS2 1 "October 2011" +.SH NAME +lxmms2 \- control XMMS2 with a LIRC compatible remote control +.SH SYNOPSIS +.B lxmms2 +.RI [ lirc-config-file ] +.SH DESCRIPTION +.B lxmms2 +is a tiny XMMS2 client to control XMMS2 with a LIRC compatible remote control. +Following actions are supported: +.IP \[bu] 2 +play (starts playback) +.IP \[bu] +pause (pauses playback) +.IP \[bu] +toggle_play_pause (toggles pause and starts playback if XMMS2 is not playing +at all) +.IP \[bu] +toggle_pause (toggles pause) +.IP \[bu] +stop (stops playback) +.IP \[bu] +next (advances to the next track) +.IP \[bu] +prev (goes back to the previous track) +.IP \[bu] +volume_up (increases the volume) +.IP \[bu] +volume_down (decreases the volume) +.SH SEE ALSO +.BR xmms2 (1), +http://xmms2.xmms.org. +.SH AUTHORS +.B lxmms2 +was written by Johannes Heimansberg . +.PP +This manual page was written by Benjamin Drung , for the +Debian project (and may be used by others). --- lxmms2-0.1.3.orig/Makefile +++ lxmms2-0.1.3/Makefile @@ -32,6 +32,7 @@ clean: install: lxmms2 install -D lxmms2 $(DESTDIR)$(PREFIX)/bin/lxmms2 + install -D lxmms2.1 $(DESTDIR)$(PREFIX)/share/man/man1/lxmms2.1 uninstall: -rm $(DESTDIR)$(PREFIX)/bin/lxmms2 debian/patches/fix-dropped-lirc-events.patch0000644000000000000000000000133312057515271016315 0ustar Description: Fix dropped lirc events. Author: Benjamin Drung Bug-Ubuntu: https://launchpad.net/bugs/1086617 --- a/lxmms2.c +++ b/lxmms2.c @@ -269,7 +269,7 @@ while (lirc_nextcode(&code) == 0 && result == SUCCESS) { if (code == NULL) continue; - if ((ret = lirc_code2char(config, code, &c)) == 0 && c != NULL) { + while ((ret = lirc_code2char(config, code, &c)) == 0 && c != NULL) { if (strcmp(c, "play") == 0) result = xmms2_play(connection); else if (strcmp(c, "pause") == 0) @@ -290,8 +290,6 @@ result = xmms2_volume_down(connection); else printf("Unknown command: %s\n", c); - usleep(500); - c = NULL; } free(code); if (ret == -1) break; debian/patches/series0000644000000000000000000000010012057515563012032 0ustar makefile.patch add-man-page.patch fix-dropped-lirc-events.patch debian/patches/makefile.patch0000644000000000000000000000200012057522246013410 0ustar Description: Adjust Makefile for making packaging easier Author: Benjamin Drung --- a/Makefile +++ b/Makefile @@ -1,11 +1,11 @@ # Makefile for lxmms2 # Installation directory -PREFIX=/usr/local +PREFIX ?= /usr/local ALLFILES=*.c Makefile README COPYING -CFLAGS=-O2 -Wall -fPIC `pkg-config --cflags xmms2-client` +CFLAGS += -O2 -Wall -fPIC `pkg-config --cflags xmms2-client` LIBS=`pkg-config --libs xmms2-client` -llirc_client CC=gcc @@ -15,7 +15,7 @@ projname:=lxmms2-$(shell awk '/define VERSION/ { print $$3 }' lxmms2.c ) lxmms2: $(OBJS) - $(CC) $(OBJS) -o lxmms2 $(LIBS) + $(CC) $(CFLAGS) $(LDFLAGS) $(OBJS) -o lxmms2 $(LIBS) dist: $(ALLFILES) -rm -rf $(projname) @@ -28,10 +28,10 @@ rm -f *.o core *.bak *~ lxmms2 %.o: %.c - $(CC) $(CFLAGS) -c $< + $(CC) $(CFLAGS) $(CPPFLAGS) -c $< install: lxmms2 - install -D lxmms2 $(PREFIX)/bin/lxmms2 + install -D lxmms2 $(DESTDIR)$(PREFIX)/bin/lxmms2 uninstall: - -rm $(PREFIX)/bin/lxmms2 + -rm $(DESTDIR)$(PREFIX)/bin/lxmms2 debian/copyright0000644000000000000000000000231512057516252011127 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: lxmms2 Upstream-Contact: Johannes Heimansberg Files: * Copyright: 2005-2010, Johannes Heimansberg License: GPL-2 This package is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; version 2. . This package is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. . You should have received a copy of the GNU General Public License along with this package; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. . On Debian systems the full text of the GNU General Public License can be found in the `/usr/share/common-licenses/GPL-2' file. Files: debian/* Copyright: 2010-2012, Benjamin Drung License: GPL-2+ On Debian systems the full text of the GNU General Public License can be found in the `/usr/share/common-licenses/GPL-2' file. debian/control0000644000000000000000000000202012057517146010573 0ustar Source: lxmms2 Section: sound Priority: optional Maintainer: Benjamin Drung Build-Depends: debhelper (>= 9), liblircclient-dev, libxmmsclient-dev (>= 0.7DrNo) Standards-Version: 3.9.4 Homepage: http://wejp.k.vu/projects/xmms2/lxmms2 Vcs-Git: git://git.debian.org/git/pkg-xmms2/lxmms2 Vcs-Browser: http://git.debian.org/?p=pkg-xmms2/lxmms2.git Package: lxmms2 Architecture: any Depends: ${misc:Depends}, ${shlibs:Depends} Recommends: xmms2 Description: control XMMS2 with a LIRC compatible remote control lxmms2 is a tiny XMMS2 client to control XMMS2 with a LIRC compatible remote control. Following actions are supported: - play (starts playback) - pause (pauses playback) - toggle_play_pause (toggles pause and starts playback if XMMS2 is not playing at all) - toggle_pause (toggles pause) - stop (stops playback) - next (advances to the next track) - prev (goes back to the previous track) - volume_up (increases the volume) - volume_down (decreases the volume) debian/source/0000755000000000000000000000000011645611763010500 5ustar debian/source/format0000644000000000000000000000001411370213764011700 0ustar 3.0 (quilt) debian/rules0000755000000000000000000000013111452121127010235 0ustar #!/usr/bin/make -f %: dh $@ override_dh_auto_install: dh_auto_install -- PREFIX=/usr debian/compat0000644000000000000000000000000212057517157010376 0ustar 9 debian/changelog0000644000000000000000000000072312057522566011054 0ustar lxmms2 (0.1.3-2) unstable; urgency=low * Fix dropped lirc events. (LP: #1086617) * Update machine-readable copyright Format to 1.0. * Bump Standards-Version to 3.9.4 (no change required). * Support passing hardening compiler flags. -- Benjamin Drung Wed, 05 Dec 2012 02:37:57 +0100 lxmms2 (0.1.3-1) unstable; urgency=low * Initial release (Closes: #645212). -- Benjamin Drung Thu, 13 Oct 2011 18:39:01 +0200 debian/watch0000644000000000000000000000011111452107751010213 0ustar version=3 http://wejp.k.vu/projects/xmms2/lxmms2 .*/lxmms2-(.+)\.tar\.gz