New package: wlrctl-0.2.2

This commit is contained in:
Marcin Puc 2023-06-11 23:26:17 +02:00 committed by Duncan Overbruck
parent 80f6d14f22
commit 2e09da18b1
2 changed files with 30 additions and 0 deletions

View File

@ -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;
}
}

17
srcpkgs/wlrctl/template Normal file
View File

@ -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 <tranzystorek.io@protonmail.com>"
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
}