From c26066335649631285f50f9c2b6ad1cf3694a8e6 Mon Sep 17 00:00:00 2001 From: Ryoga-exe Date: Wed, 20 Nov 2024 13:30:12 +0900 Subject: [PATCH] New package: swayosd-0.1.0 --- .../files/swayosd-libinput-backend/run | 4 +++ srcpkgs/swayosd/template | 33 +++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 srcpkgs/swayosd/files/swayosd-libinput-backend/run create mode 100644 srcpkgs/swayosd/template diff --git a/srcpkgs/swayosd/files/swayosd-libinput-backend/run b/srcpkgs/swayosd/files/swayosd-libinput-backend/run new file mode 100644 index 00000000000000..8a5c4558758b61 --- /dev/null +++ b/srcpkgs/swayosd/files/swayosd-libinput-backend/run @@ -0,0 +1,4 @@ +#!/bin/sh +exec 2>&1 + +exec swayosd-libinput-backend diff --git a/srcpkgs/swayosd/template b/srcpkgs/swayosd/template new file mode 100644 index 00000000000000..ec79ced70fb67b --- /dev/null +++ b/srcpkgs/swayosd/template @@ -0,0 +1,33 @@ +# Template file for 'swayosd' +pkgname=swayosd +version=0.1.0 +revision=1 +build_style=meson +configure_args="--buildtype=release" +hostmakedepends="pkg-config cargo sassc" +makedepends="eudev-libudev-devel libevdev-devel gtk+3-devel gtk-layer-shell-devel + libinput-devel atk-devel glib-devel pulseaudio-devel" +short_desc="A GTK based on screen display for keyboard shortcuts" +maintainer="Ryoga-exe " +license="GPL-3.0-only" +homepage="https://github.com/ErikReider/SwayOSD" +changelog="https://github.com/ErikReider/SwayOSD/releases" +distfiles="https://github.com/ErikReider/SwayOSD/archive/refs/tags/v${version}.tar.gz" +checksum=5a07607643dc49d19604842f2c2f777f6148981147c425c281b0634254438a0b + +do_install() { + meson install -C build + vbin /usr/bin/swayosd-client + vbin /usr/bin/swayosd-server + vbin /usr/bin/swayosd-libinput-backend + vinstall /usr/share/dbus-1/system.d/org.erikreider.swayosd.conf 644 /usr/share/dbus-1/system.d + vinstall /usr/share/dbus-1/system-services/org.erikreider.swayosd.service 644 /usr/share/dbus-1/system-services + vinstall /usr/share/polkit-1/actions/org.erikreider.swayosd.policy 644 /usr/share/polkit-1/actions + vinstall /usr/share/polkit-1/rules.d/org.erikreider.swayosd.rules 644 /usr/share/polkit-1/rules.d + vinstall /usr/lib/udev/rules.d/99-swayosd.rules 644 /usr/lib/udev/rules.d + vinstall /etc/xdg/swayosd/style.css 644 /etc/xdg/swayosd +} + +post_install() { + vsv swayosd-libinput-backend +}