From 03a629f85062e9399adbc49ac82ea43503ea320a Mon Sep 17 00:00:00 2001 From: mhmdanas Date: Mon, 3 Apr 2023 01:41:40 +0100 Subject: [PATCH] New package: shotman-0.4.3 --- srcpkgs/shotman/template | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 srcpkgs/shotman/template diff --git a/srcpkgs/shotman/template b/srcpkgs/shotman/template new file mode 100644 index 000000000000..988ac18c3e8d --- /dev/null +++ b/srcpkgs/shotman/template @@ -0,0 +1,28 @@ +# Template file for 'shotman' +pkgname=shotman +version=0.4.3 +revision=1 +build_style=cargo +build_helper="qemu" +hostmakedepends="pkg-config scdoc" +makedepends="libxkbcommon-devel" +depends="slurp" +short_desc="Uncompromising screenshot GUI for Wayland" +maintainer="Mohammed Anas " +license="ISC" +homepage="https://sr.ht/~whynothugo/shotman" +changelog="https://git.sr.ht/~whynothugo/shotman/tree/main/item/README.md#changelog" +distfiles="https://git.sr.ht/~whynothugo/shotman/archive/v${version}.tar.gz" +checksum=75b5999655473e83a43d029bd7880da4bb6ca7ff0da95dd4b87568a53f097155 + +export SHOTMAN_VERSION="v${version}" + +post_install() { + scdoc shotman.1 + vman shotman.1 + vlicense LICENCE.md + for shell in bash fish zsh; do + vtargetrun "./target/${RUST_TARGET}/release/shotman_completions" "${shell}" >"completions.${shell}" + vcompletion "completions.${shell}" "${shell}" + done +}