diff --git a/srcpkgs/dotter-bin/template b/srcpkgs/dotter-bin/template deleted file mode 100644 index 7e31e6f..0000000 --- a/srcpkgs/dotter-bin/template +++ /dev/null @@ -1,19 +0,0 @@ -# Template file for 'dotter-bin' -pkgname=dotter-bin -version=0.13.3 -revision=1 -archs="x86_64 x86_64-musl" -hostmakedepends="" -makedepends="" -depends="" -short_desc="dotfile manager and templater written in rust" -maintainer="Marty Oehme <contact@martyoeh.me>" -license="Unlicense" -homepage="https://github.com/SuperCuber/dotter" -distfiles="https://github.com/SuperCuber/dotter/releases/download/v${version}/dotter-linux-x64-musl" -skip_extraction="dotter-linux-x64-musl" -checksum=5442450982bebca00581bd04b14f4f10abdd4bed9493431c1ad451d9d8a80bb4 - -do_install() { - vbin $XBPS_SRCDISTDIR/$pkgname-$version/dotter-linux-x64-musl dotter -} diff --git a/srcpkgs/dotter/template b/srcpkgs/dotter/template new file mode 100644 index 0000000..7b342ec --- /dev/null +++ b/srcpkgs/dotter/template @@ -0,0 +1,25 @@ +# Template file for 'dotter' +pkgname=dotter +version=0.13.3 +revision=1 +build_style=cargo +hostmakedepends="rust" +makedepends="rust-std which" +short_desc="dotfile manager and templater written in rust" +maintainer="Marty Oehme <contact@martyoeh.me>" +license="Unlicense" +homepage="https://github.com/SuperCuber/dotter" +distfiles="${homepage}/archive/v${version}.tar.gz" +checksum=4ca78450414f405c892c26b1663cac6e56a86e1d04529a7b1a69b23881c38414 + +post_install() { + vdoc README.md + vlicense LICENSE.md + + "$PKGDESTDIR"/usr/bin/dotter gen-completions --shell bash > completion.bash + "$PKGDESTDIR"/usr/bin/dotter gen-completions --shell zsh > completion.zsh + "$PKGDESTDIR"/usr/bin/dotter gen-completions --shell fish > completion.fish + vcompletion completion.bash bash + vcompletion completion.zsh zsh + vcompletion completion.fish fish +}