From 68eb4bca0c05c1a62b7f25c5a3220b6df361ab3f Mon Sep 17 00:00:00 2001 From: Tim Biermann Date: Sun, 30 Oct 2022 09:06:47 +0000 Subject: [PATCH] wshowkeys: initial commit, version 0.1.0 --- wshowkeys/.footprint | 3 +++ wshowkeys/.signature | 5 +++++ wshowkeys/Pkgfile | 26 ++++++++++++++++++++++++++ 3 files changed, 34 insertions(+) create mode 100644 wshowkeys/.footprint create mode 100644 wshowkeys/.signature create mode 100644 wshowkeys/Pkgfile diff --git a/wshowkeys/.footprint b/wshowkeys/.footprint new file mode 100644 index 000000000..305abf23d --- /dev/null +++ b/wshowkeys/.footprint @@ -0,0 +1,3 @@ +drwxr-xr-x root/root usr/ +drwxr-xr-x root/root usr/bin/ +-rwsr-sr-x root/root usr/bin/wshowkeys diff --git a/wshowkeys/.signature b/wshowkeys/.signature new file mode 100644 index 000000000..3cf8fe841 --- /dev/null +++ b/wshowkeys/.signature @@ -0,0 +1,5 @@ +untrusted comment: verify with /etc/ports/contrib.pub +RWSagIOpLGJF39lAWxBOGVOcQUpNC6bKKLRDPUVgjLauwx+D7SbYnUtScwXG7li+Tee95yqnV/Ce2aP2EJIhLXtpZ8zNpnDK1gg= +SHA256 (Pkgfile) = f5baa3202134bf41d1e18a73cf1001b049bf97539514f7569bcff4428f1ad9fa +SHA256 (.footprint) = 8a0dade7ea0775df5103572889d49745fd5f546d2dec480895c124ca581a86dc +SHA256 (wshowkeys-0.1.0.tar.gz) = 9478950ec0ae4aceab3ad73229d97c1259ca81dcb2ff9dc0cc0a4ce5596efa14 diff --git a/wshowkeys/Pkgfile b/wshowkeys/Pkgfile new file mode 100644 index 000000000..fac884a68 --- /dev/null +++ b/wshowkeys/Pkgfile @@ -0,0 +1,26 @@ +# Description: Displays keys being pressed on a Wayland session +# URL: https://git.sr.ht/~sircmpwn/wshowkeys +# Maintainer: Tim Biermann, tbier at posteo dot de +# Depends on: libinput libxkbcommon pango wayland-protocols + +name=wshowkeys +# https://github.com/ammgws/wshowkeys/blob/e8bfc78f08ebdd1316daae59ecc77e62bba68b2b/meson.build#L4 +version=0.1.0 +release=1 +_commit=e8bfc78f08ebdd1316daae59ecc77e62bba68b2b +source=(https://github.com/ammgws/wshowkeys/archive/$_commit/$name-$version.tar.gz) + +build() { + CC=gcc + + meson setup $name-$_commit build \ + --prefix=/usr \ + --buildtype=plain \ + --wrap-mode nodownload \ + -D b_lto=true \ + -D b_pie=true + meson compile -C build + DESTDIR=$PKG meson install -C build + + chmod a+s $PKG/usr/bin/$name +}