rsv: fix cross-build, add completions

This commit is contained in:
classabbyamp 2022-10-24 22:33:34 -04:00
parent 2dcf5ef5a9
commit 8c2bf4d1ce
No known key found for this signature in database
GPG Key ID: 6BE0755918A4C7F5
1 changed files with 14 additions and 1 deletions

View File

@ -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 <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
}