diff --git a/srcpkgs/rsv/template b/srcpkgs/rsv/template index f390f55a429..0d4276b7583 100644 --- a/srcpkgs/rsv/template +++ b/srcpkgs/rsv/template @@ -1,11 +1,24 @@ # Template file for 'rsv' pkgname=rsv version=1.3.3 -revision=1 +revision=2 build_style=cargo +build_helper=qemu short_desc="Runit sv command rewritten in rust with nice new features" maintainer="mkf " license="GPL-3.0-only" homepage="https://github.com/JojiiOfficial/rsv" distfiles="https://github.com/JojiiOfficial/rsv/archive/v${version}.tar.gz" checksum=599c8f2db3aab8dd36a290cbe63d6489453f5e76fd432eeb85a6a96058ecfa88 + +pre_build() { + # fixes an indexmap error when cross compiling + cargo update --package autocfg:1.0.1 --precise 1.1.0 +} + +post_install() { + for sh in bash zsh fish; do + vtargetrun ${DESTDIR}/usr/bin/rsv --generate $sh > completions.$sh + vcompletion completions.$sh $sh + done +}