void-packages/srcpkgs/rsv/template

25 lines
707 B
Bash

# Template file for 'rsv'
pkgname=rsv
version=1.3.3
revision=3
build_style=cargo
build_helper=qemu
short_desc="Runit sv command rewritten in rust with nice new features"
maintainer="mkf <makefile@riseup.net>"
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
}