diff --git a/srcpkgs/shotman/template b/srcpkgs/shotman/template new file mode 100644 index 00000000000..988ac18c3e8 --- /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 +}