From 43d4383fbe664f8325a6d544428c1fd72dececdb Mon Sep 17 00:00:00 2001 From: lukas-jo Date: Thu, 15 Feb 2024 01:47:35 +0100 Subject: [PATCH] New package: dotter-0.13.1 --- srcpkgs/dotter/template | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 srcpkgs/dotter/template diff --git a/srcpkgs/dotter/template b/srcpkgs/dotter/template new file mode 100644 index 00000000000000..27b6ae0adc5af0 --- /dev/null +++ b/srcpkgs/dotter/template @@ -0,0 +1,28 @@ +# Template file for 'dotter' +pkgname=dotter +version=0.13.1 +revision=1 +build_style=cargo +build_helper=qemu +checkdepends="which" +short_desc="Dotfile manager and templater written in rust" +maintainer="Lukas Jordan " +license="Unlicense" +homepage="https://github.com/SuperCuber/dotter" +changelog="https://github.com/SuperCuber/dotter/releases" +distfiles="https://github.com/SuperCuber/dotter/archive/refs/tags/v${version}.tar.gz" +checksum=b017b8315a76bf62b2e8e65217d487ad88b73fc18110a679076e6ad6e3936c40 + +post_build() { + mkdir completions + for shell in bash fish zsh; do + vtargetrun target/${RUST_TARGET}/release/dotter gen-completions --shell ${shell} --to completions + done +} + +post_install() { + vlicense LICENSE.md + vcompletion completions/dotter.bash bash + vcompletion completions/dotter.fish fish + vcompletion completions/_dotter zsh +}