From f2f9ff8d47a8e201d7b159f691734554460fd7ec Mon Sep 17 00:00:00 2001 From: juantascon Date: Mon, 4 Mar 2024 12:47:57 +0100 Subject: [PATCH] New package: swhkd-1.2.1 --- srcpkgs/swhkd/template | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 srcpkgs/swhkd/template diff --git a/srcpkgs/swhkd/template b/srcpkgs/swhkd/template new file mode 100644 index 00000000000000..b96ba7a05ad747 --- /dev/null +++ b/srcpkgs/swhkd/template @@ -0,0 +1,35 @@ +# Template file for 'swhkd' +pkgname=swhkd +version=1.2.1 +revision=1 +archs="i686* x86_64*" +build_style=gnu-makefile +hostmakedepends="pkg-config" +makedepends="eudev-libudev-devel rust cargo scdoc" +depends="polkit" +short_desc="Display server-independent hotkey daemon inspired by sxhkd" +maintainer="Juan Diego Tascon " +license="BSD-2-Clause " +homepage="https://github.com/waycrate/swhkd" +changelog="https://raw.githubusercontent.com/waycrate/swhkd/main/CHANGELOG.md" +distfiles="https://github.com/waycrate/swhkd/archive/refs/tags/${version}.tar.gz" +checksum=e74b7b2dc6ab3a31d7bdc4ece09da6ed7f959c7369112a6a45a435a8a0adf195 + +post_build() { + scdoc < ./docs/swhkd.1.scd > ./docs/swhkd.1 + scdoc < ./docs/swhks.1.scd > ./docs/swhks.1 + scdoc < ./docs/swhkd.5.scd > ./docs/swhkd.5 + scdoc < ./docs/swhkd-keys.5.scd > ./docs/swhkd-keys.5 +} + +do_install() { + vmkdir usr/share/polkit-1/actions + vman ./docs/swhks.1 + vman ./docs/swhkd.1 + vman ./docs/swhkd.5 + vman ./docs/swhkd-keys.5 + vbin ./target/release/swhkd + vbin ./target/release/swhks + vcopy ./com.github.swhkd.pkexec.policy usr/share/polkit-1/actions/ + vlicense LICENSE LICENSE +}