# Template file for 'shotman'
pkgname=shotman
version=0.5.0
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="Nicolas Rojas <code@nicolasrojas.me>"
license="ISC"
homepage="https://shotman.whynothugo.nl"
changelog="https://git.sr.ht/~whynothugo/shotman/blob/main/CHANGELOG.md"
distfiles="https://git.sr.ht/~whynothugo/shotman/archive/v${version}.tar.gz"
checksum=b2cb324db9ac3ad892eea7eca6fb71d648d7062d063fe8072d0720335c644d68

export SHOTMAN_VERSION="v${version}"

post_install() {
	scdoc <shotman.1.scd >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
}
