mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-07 23:53:51 +02:00
rsv: fix cross-build, add completions
This commit is contained in:
parent
2dcf5ef5a9
commit
8c2bf4d1ce
1 changed files with 14 additions and 1 deletions
|
@ -1,11 +1,24 @@
|
||||||
# Template file for 'rsv'
|
# Template file for 'rsv'
|
||||||
pkgname=rsv
|
pkgname=rsv
|
||||||
version=1.3.3
|
version=1.3.3
|
||||||
revision=1
|
revision=2
|
||||||
build_style=cargo
|
build_style=cargo
|
||||||
|
build_helper=qemu
|
||||||
short_desc="Runit sv command rewritten in rust with nice new features"
|
short_desc="Runit sv command rewritten in rust with nice new features"
|
||||||
maintainer="mkf <makefile@riseup.net>"
|
maintainer="mkf <makefile@riseup.net>"
|
||||||
license="GPL-3.0-only"
|
license="GPL-3.0-only"
|
||||||
homepage="https://github.com/JojiiOfficial/rsv"
|
homepage="https://github.com/JojiiOfficial/rsv"
|
||||||
distfiles="https://github.com/JojiiOfficial/rsv/archive/v${version}.tar.gz"
|
distfiles="https://github.com/JojiiOfficial/rsv/archive/v${version}.tar.gz"
|
||||||
checksum=599c8f2db3aab8dd36a290cbe63d6489453f5e76fd432eeb85a6a96058ecfa88
|
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
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue