aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichał Polański <michal@polanski.me>2021-09-14 23:06:16 +0200
committerMichał Polański <michal@polanski.me>2021-09-14 23:06:16 +0200
commit0a15b20f6253759878ee074572744f6d92bed166 (patch)
treecb876eb853d9fd613c2067ab01a9b91d37411ca0
parentb76ad378da376aecf6a09a51213a5433c0ec2ff2 (diff)
downloadaports-0a15b20f6253759878ee074572744f6d92bed166.tar.gz
aports-0a15b20f6253759878ee074572744f6d92bed166.tar.bz2
aports-0a15b20f6253759878ee074572744f6d92bed166.tar.xz
testing/lswt: new aport
List Wayland toplevels https://git.sr.ht/~leon_plickat/lswt
-rw-r--r--testing/lswt/APKBUILD29
-rw-r--r--testing/lswt/makefile.patch26
2 files changed, 55 insertions, 0 deletions
diff --git a/testing/lswt/APKBUILD b/testing/lswt/APKBUILD
new file mode 100644
index 0000000000..0047c8c1be
--- /dev/null
+++ b/testing/lswt/APKBUILD
@@ -0,0 +1,29 @@
+# Contributor: Michał Polański <michal@polanski.me>
+# Maintainer: Michał Polański <michal@polanski.me>
+pkgname=lswt
+pkgver=1.0.1
+pkgrel=0
+pkgdesc="List Wayland toplevels"
+url="https://git.sr.ht/~leon_plickat/lswt"
+license="GPL-3.0"
+arch="all"
+options="!check" # no test suite
+makedepends="wayland-dev wayland-protocols"
+subpackages="$pkgname-doc $pkgname-bash-completion"
+source="$pkgname-$pkgver.tar.gz::https://git.sr.ht/~leon_plickat/lswt/archive/v$pkgver.tar.gz
+ makefile.patch
+ "
+builddir="$srcdir/lswt-v$pkgver"
+
+build() {
+ make
+}
+
+package() {
+ make DESTDIR="$pkgdir" PREFIX=/usr install
+}
+
+sha512sums="
+2c68be801f81d585c105b173cc12a4617b2f9f5b153f243ca9190ad3b0bc9aa38d4034a7db20cf0fd4b2c4d4c32a5864e679ca8a07c349f564aa81c982c5c590 lswt-1.0.1.tar.gz
+8dd07cd38129ff40639d8b2e150ac3520db69edce9968e1cbc87dc7ccb65ca6e029d7f2aa80d1f50fbbd835ad017f92679a845dd6bb5cf1f29f6bd5941184cd6 makefile.patch
+"
diff --git a/testing/lswt/makefile.patch b/testing/lswt/makefile.patch
new file mode 100644
index 0000000000..a0b96e3978
--- /dev/null
+++ b/testing/lswt/makefile.patch
@@ -0,0 +1,26 @@
+From ac8b8af3a814453e50474025bb19eeef981e7c12 Mon Sep 17 00:00:00 2001
+From: Lennard Hofmann <lennard.hofmann@web.de>
+Date: Tue, 15 Jun 2021 14:43:42 +0000
+Subject: [PATCH] make: remove misplaced dolar sign
+
+If LDFLAGS is set to "foo", the build will fail because the command "ccfoo" does not exist (notice there is no space between "cc" and "foo")
+---
+ Makefile | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/Makefile b/Makefile
+index b0abc4b..846a265 100644
+--- a/Makefile
++++ b/Makefile
+@@ -11,7 +11,7 @@ OBJ=lswt.o wlr-foreign-toplevel-management-unstable-v1.o xdg-output-unstable-v1.
+ GEN=wlr-foreign-toplevel-management-unstable-v1.c wlr-foreign-toplevel-management-unstable-v1.h xdg-output-unstable-v1.c xdg-output-unstable-v1.h
+
+ lswt: $(OBJ)
+- $(CC)$ $(LDFLAGS) -o $@ $(OBJ) $(LIBS)
++ $(CC) $(LDFLAGS) -o $@ $(OBJ) $(LIBS)
+
+ $(OBJ): $(GEN)
+
+--
+2.32.0
+