commit efb2e74cf451eded0c6e95fa7ff53c07589d464e Author: Juergen Daubert <jue@jue.li> Date: Thu Feb 27 11:11:01 2014 +0100 spectrwm: update to 2.5.0 diff --git a/spectrwm/.md5sum b/spectrwm/.md5sum index cda74b6..42843ad 100644 --- a/spectrwm/.md5sum +++ b/spectrwm/.md5sum @@ -1,3 +1,2 @@ -23e32c1e292f2fc94ed88195ffe60023 spectrwm-2.4.0.tgz -1ebde41a8b57b6e116e6effd7a911dc9 spectrwm-fix_unbind.patch -be5fdf53ebac908ad037ad937de5ba3a spectrwm-remove_libswmhack.patch +22355256693393779b2d366d312c4577 spectrwm-2.5.0.tgz +12a904c0dd99879c18abb51e5e697bac spectrwm-remove_libswmhack.patch diff --git a/spectrwm/Pkgfile b/spectrwm/Pkgfile index 614acf6..43ff337 100644 --- a/spectrwm/Pkgfile +++ b/spectrwm/Pkgfile @@ -4,15 +4,14 @@ # Depends on: xorg-libxrender fontconfig xorg-xcb-util-keysyms xorg-xcb-util-wm name=spectrwm -version=2.4.0 -release=2 +version=2.5.0 +release=1 source=(https://opensource.conformal.com/snapshots/$name/$name-$version.tgz - $name-fix_unbind.patch $name-remove_libswmhack.patch) + $name-remove_libswmhack.patch) build () { cd $name-$version/linux patch -p 1 -d .. -i $SRC/$name-remove_libswmhack.patch - patch -p 1 -d .. -i $SRC/$name-fix_unbind.patch make PREFIX=/usr MANDIR=/usr/man DESTDIR=$PKG install rm $PKG/usr/man/man1/spectrwm_*.1 ln -sf spectrwm $PKG/usr/bin/scrotwm diff --git a/spectrwm/spectrwm-fix_unbind.patch b/spectrwm/spectrwm-fix_unbind.patch deleted file mode 100644 index 7bc81e8..0000000 --- a/spectrwm/spectrwm-fix_unbind.patch +++ /dev/null @@ -1,64 +0,0 @@ -commit 844157986de0e1fb9a50c7674eaae527eec23349 -Author: Reginald Kennedy <rk@rejii.com> -Date: Sat Nov 16 23:21:15 2013 +0800 - - Fix 'bind[] = ...' not unbinding as expected. - - Fixes #23 - -diff --git a/spectrwm.c b/spectrwm.c -index 34a49be..251b746 100644 ---- a/spectrwm.c -+++ b/spectrwm.c -@@ -6398,6 +6398,9 @@ setconfspawn(const char *selector, const char *value, int flags) - { - char *args; - -+ if (selector == NULL || strlen(selector) == 0) -+ return (1); -+ - args = expand_tilde(value); - - DNPRINTF(SWM_D_SPAWN, "setconfspawn: [%s] [%s]\n", selector, args); -@@ -6646,8 +6649,9 @@ setconfbinding(const char *selector, const char *value, int flags) - /* suppress unused warning since var is needed */ - (void)flags; - -- DNPRINTF(SWM_D_KEY, "setconfbinding: enter\n"); -- if (selector == NULL) { -+ DNPRINTF(SWM_D_KEY, "setconfbinding: enter selector: [%s], " -+ "value: [%s]\n", selector, value); -+ if (selector == NULL || strlen(selector) == 0) { - DNPRINTF(SWM_D_KEY, "setconfbinding: unbind %s\n", value); - if (parsekeys(value, mod_key, &mod, &ks) == 0) { - kfid = KF_INVALID; -@@ -7164,7 +7168,7 @@ setconfquirk(const char *selector, const char *value, int flags) - /* suppress unused warning since var is needed */ - (void)flags; - -- if (selector == NULL) -+ if (selector == NULL || strlen(selector) == 0) - return (0); - - if ((str = strdup(selector)) == NULL) -@@ -7277,9 +7281,6 @@ setconfvalue(const char *selector, const char *value, int flags) - int i, ws_id, num_screens; - char *b, *str; - -- /* suppress unused warning since var is needed */ -- (void)selector; -- - switch (flags) { - case SWM_S_BAR_ACTION: - free(bar_argv[0]); -@@ -7519,7 +7520,9 @@ setconfmodkey(const char *selector, const char *value, int flags) - int - setconfcolor(const char *selector, const char *value, int flags) - { -- setscreencolor(value, ((selector == NULL)?-1:atoi(selector)), flags); -+ setscreencolor(value, -+ (selector == NULL || strlen(selector) == 0) ? -1 : atoi(selector), -+ flags); - return (0); - } - diff --git a/spectrwm/spectrwm-remove_libswmhack.patch b/spectrwm/spectrwm-remove_libswmhack.patch index f2920f3..5758ba0 100644 --- a/spectrwm/spectrwm-remove_libswmhack.patch +++ b/spectrwm/spectrwm-remove_libswmhack.patch @@ -1,13 +1,15 @@ -diff -Nru spectrwm-2.4.0.orig/linux/Makefile spectrwm-2.4.0/linux/Makefile ---- spectrwm-2.4.0.orig/linux/Makefile 2013-11-27 12:41:41.935783480 +0100 -+++ spectrwm-2.4.0/linux/Makefile 2013-11-27 12:44:47.562396671 +0100 -@@ -1,5 +1,5 @@ +diff -Nru spectrwm-2.5.0.orig/linux/Makefile spectrwm-2.5.0/linux/Makefile +--- spectrwm-2.5.0.orig/linux/Makefile 2014-02-27 10:30:41.708091165 +0100 ++++ spectrwm-2.5.0/linux/Makefile 2014-02-27 10:32:12.751479280 +0100 +@@ -6,7 +6,7 @@ + LVERS= $(shell . ../lib/shlib_version; echo $$major.$$minor) + CFLAGS+= -std=c99 -Wmissing-prototypes -Wall -Wextra -Wshadow -Wno-uninitialized -g --CFLAGS+= -D_GNU_SOURCE -I. -I/usr/include/freetype2 -DSWM_LIB=\"libswmhack.so.$(LVERS)\" +-CFLAGS+= -D_GNU_SOURCE -I. -I/usr/include/freetype2 -DSWM_LIB=\"$(LIBDIR)/libswmhack.so.$(LVERS)\" +CFLAGS+= -D_GNU_SOURCE -I. -I/usr/include/freetype2 LDADD+= -lX11 -lX11-xcb -lxcb -lxcb-icccm -lxcb-randr -lxcb-keysyms -lxcb-util -lxcb-xtest -lXft -lXcursor - PREFIX?= /usr/local + CC?= cc @@ -16,7 +16,7 @@ CFLAGS+= -DSPECTRWM_BUILDSTR=\"$(BUILDVERSION)\" endif @@ -33,10 +35,10 @@ diff -Nru spectrwm-2.4.0.orig/linux/Makefile spectrwm-2.4.0/linux/Makefile clean: rm -f spectrwm *.o *.so libswmhack.so.* spectrwm.c swm_hack.c version.h -diff -Nru spectrwm-2.4.0.orig/spectrwm.c spectrwm-2.4.0/spectrwm.c ---- spectrwm-2.4.0.orig/spectrwm.c 2013-11-27 12:41:41.935783480 +0100 -+++ spectrwm-2.4.0/spectrwm.c 2013-11-27 12:50:27.810081824 +0100 -@@ -273,9 +273,9 @@ +diff -Nru spectrwm-2.5.0.orig/spectrwm.c spectrwm-2.5.0/spectrwm.c +--- spectrwm-2.5.0.orig/spectrwm.c 2014-02-27 10:30:41.708091165 +0100 ++++ spectrwm-2.5.0/spectrwm.c 2014-02-27 10:31:08.557124812 +0100 +@@ -299,9 +299,9 @@ #define SWM_CONF_DEFAULT (0) #define SWM_CONF_KEYMAPPING (1) @@ -48,7 +50,7 @@ diff -Nru spectrwm-2.4.0.orig/spectrwm.c spectrwm-2.4.0/spectrwm.c char **start_argv; xcb_atom_t a_state; -@@ -3117,7 +3117,7 @@ +@@ -3317,7 +3317,7 @@ close(xcb_get_file_descriptor(conn));