# Template file for 'satty'
pkgname=satty
version=0.21.1
revision=1
build_style=cargo
# 'ci-release' makes build.rs emit completions/ and man/ into the source tree
configure_args="--features ci-release"
hostmakedepends="pkg-config"
makedepends="fontconfig-devel libepoxy-devel libglib-devel gtk4-devel libadwaita-devel"
short_desc="Modern Screenshot Annotation"
maintainer="Fabien JUIF <fabien.juif@gmail.com>"
license="MPL-2.0"
homepage="https://github.com/Satty-org/Satty"
distfiles="https://github.com/Satty-org/Satty/archive/refs/tags/v${version}.tar.gz"
checksum=890384695583e649074f453f2e694fd2cae6960c189363f849e2ecd2a27f8b79

post_install() {
	vlicense LICENSE

	vcompletion completions/_satty zsh
	vcompletion completions/satty.bash bash
	vcompletion completions/satty.fish fish

	vman man/satty.1

	vinstall satty.desktop 644 /usr/share/applications
	vinstall assets/satty.svg 644 /usr/share/icons/hicolor/scalable/apps
	vinstall org.satty.Satty.metainfo.xml 644 /usr/share/metainfo
}
