From cf0e294321dd9da600532a2b0c88c8a85172302b Mon Sep 17 00:00:00 2001 From: Marcin Puc Date: Sun, 11 Jun 2023 23:26:17 +0200 Subject: [PATCH] New package: wlrctl-0.2.2 --- srcpkgs/wlrctl/patches/fix-ascii-check.patch | 13 +++++++++++++ srcpkgs/wlrctl/template | 17 +++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 srcpkgs/wlrctl/patches/fix-ascii-check.patch create mode 100644 srcpkgs/wlrctl/template diff --git a/srcpkgs/wlrctl/patches/fix-ascii-check.patch b/srcpkgs/wlrctl/patches/fix-ascii-check.patch new file mode 100644 index 000000000000..aa1803c9eaca --- /dev/null +++ b/srcpkgs/wlrctl/patches/fix-ascii-check.patch @@ -0,0 +1,13 @@ +diff --git a/keyboard.c b/keyboard.c +index 8dc090c..3afd490 100644 +--- a/keyboard.c ++++ b/keyboard.c +@@ -90,7 +90,7 @@ static bool + is_ascii(const char str[]) + { + for (int i = 0; str[i] != '\0'; i++) { +- if (str[i] < 0) { ++ if (!isprint(str[i]) && !iscntrl(str[i])) { + return false; + } + } diff --git a/srcpkgs/wlrctl/template b/srcpkgs/wlrctl/template new file mode 100644 index 000000000000..82ccb2aedeb5 --- /dev/null +++ b/srcpkgs/wlrctl/template @@ -0,0 +1,17 @@ +# Template file for 'wlrctl' +pkgname=wlrctl +version=0.2.2 +revision=1 +build_style=meson +hostmakedepends="pkg-config scdoc wayland-devel" +makedepends="libxkbcommon-devel wayland-devel" +short_desc="Utility for miscellaneous wlroots extensions" +maintainer="Marcin Puc " +license="MIT" +homepage="https://git.sr.ht/~brocellous/wlrctl" +distfiles="https://git.sr.ht/~brocellous/wlrctl/archive/v${version}.tar.gz" +checksum=b5b3836091c41de09a832df1e5eb4747841d7ae670367e413487d5be7a5f2849 + +post_install() { + vlicense LICENSE +}