diff --git a/srcpkgs/tomat/template b/srcpkgs/tomat/template new file mode 100644 index 00000000000000..282807bbd896f2 --- /dev/null +++ b/srcpkgs/tomat/template @@ -0,0 +1,26 @@ +# Template file for 'tomat' +pkgname=tomat +version=2.11.0 +revision=1 +build_style=cargo +hostmakedepends="pkg-config" +makedepends="alsa-lib-devel" +short_desc="Pomodoro timer with daemon support for waybar and other status bars" +maintainer="rayfadh " +license="MIT" +homepage="https://jolars.github.io/tomat/" +changelog="https://raw.githubusercontent.com/jolars/tomat/refs/heads/main/CHANGELOG.md" +distfiles="https://github.com/jolars/tomat/archive/refs/tags/v${version}.tar.gz" +checksum=44de71a3896019a466013f578f45368bc0153f8fb1f8e3dd6fb58041985ecfc8 + +post_install() { + vlicense LICENSE + + for _f in target/man/*.1; do + vman "$_f" + done + + vinstall target/completions/tomat.bash 644 usr/share/bash-completion/completions tomat + vinstall target/completions/tomat.fish 644 usr/share/fish/vendor_completions.d + vinstall target/completions/_tomat 644 usr/share/zsh/site-functions +}