Files
lswt/Makefile.patch
Soc Virnyl Estela 1725344461 Accepting request 1179490 from home:smolsheep:upgrades
- Switch to obs_scm to reduce space used on openSUSE servers
- Update Makefile.patch to current Makefile
- Update to version 2.0.0:
  * Human readable output format has changed.
  * Added watch mode, which will make lswt run continously,
    printing any updates to title and app-id of all toplevels as
    they happen.
  * Added support for the new ext-foreign-toplevel-info-v1
    protocol. lswt now supports both the ext- and the old wlr-
    protocol. Note that the feature set of these protocols is not
    congruent. The new ext- protocol offers unique identifiers for
    each toplevel, which should allow greater scripting abilities,
    while the older wlr- protocol supports states such as activated
    ("focused"), minimized, maximized and fullscreen. Should the
    Wayland server support both protocols, the newer ext- protocol
    is preferred.
  * The JSON output format has changed significantly. It gained a
    field indicating it's version and a field showing which
    toplevel states supported.
  * The TSV output format has been replaced by the more common and
    more widely supported CSV output format. Fields can be
    specified using a simple format string.
  * Fixed various bugs around printing NULL values and escaping
    strings for the machine readable output formats.
  * Fixed minor memory leak.
  * The Makefile has been updated to allow building on FreeBSD more
    easily.
  * lswt can now be build with clang more easiely.

OBS-URL: https://build.opensuse.org/request/show/1179490
OBS-URL: https://build.opensuse.org/package/show/X11:Wayland/lswt?expand=0&rev=10
2024-06-08 17:04:05 +00:00

31 lines
1.3 KiB
Diff

diff --git a/Makefile b/Makefile
index 5b609c7..406f974 100644
--- a/Makefile
+++ b/Makefile
@@ -1,13 +1,13 @@
SCANNER := wayland-scanner
-PREFIX=/usr/local
+PREFIX=/usr
BINDIR=$(PREFIX)/bin
MANDIR=$(PREFIX)/share/man
BASHCOMPDIR=$(PREFIX)/share/bash-completion/completions
CFLAGS+=-Wall -Werror -Wextra -Wpedantic
-CFLAGS+=-Wno-unused-parameter -Wconversion -Wformat-security -Wformat -Wsign-conversion -Wfloat-conversion -Wunused-result
-LIBS=-lwayland-client
+CFLAGS=-Wall -Werror -Wextra -Wpedantic -Wno-unused-parameter -Wconversion -Wformat-security -Wformat -Wsign-conversion -Wfloat-conversion -Wunused-result $(shell pkg-config --cflags wayland-client)
+LIBS=$(shell pkg-config --libs wayland-client)
OBJ=lswt.o wlr-foreign-toplevel-management-unstable-v1.o ext-foreign-toplevel-list-v1.o
GEN=wlr-foreign-toplevel-management-unstable-v1.c wlr-foreign-toplevel-management-unstable-v1.h ext-foreign-toplevel-list-v1.c ext-foreign-toplevel-list-v1.h
@@ -28,7 +28,7 @@ install: lswt
install -d $(DESTDIR)$(MANDIR)/man1
install -m 644 lswt.1 $(DESTDIR)$(MANDIR)/man1
install -d $(DESTDIR)$(BASHCOMPDIR)
- install bash-completion $(DESTDIR)$(BASHCOMPDIR)/lswt
+ install -m 644 bash-completion $(DESTDIR)$(BASHCOMPDIR)/lswt
uninstall:
$(RM) $(DESTDIR)$(BINDIR)/lswt