mdBook: add completions
This commit is contained in:
parent
e0bb60b2e0
commit
4eed2fffbc
1 changed files with 7 additions and 1 deletions
|
@ -1,8 +1,9 @@
|
||||||
# Template file for 'mdBook'
|
# Template file for 'mdBook'
|
||||||
pkgname=mdBook
|
pkgname=mdBook
|
||||||
version=0.4.37
|
version=0.4.37
|
||||||
revision=1
|
revision=2
|
||||||
build_style=cargo
|
build_style=cargo
|
||||||
|
build_helper=qemu
|
||||||
short_desc="Create book from markdown files. Like Gitbook but implemented in Rust"
|
short_desc="Create book from markdown files. Like Gitbook but implemented in Rust"
|
||||||
maintainer="Érico Nogueira <ericonr@disroot.org>"
|
maintainer="Érico Nogueira <ericonr@disroot.org>"
|
||||||
license="MPL-2.0"
|
license="MPL-2.0"
|
||||||
|
@ -13,4 +14,9 @@ checksum=7a360cb8702d8a35d9db9d0639a6a4650d3a9492970cf772f49c5a99d981272c
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
vlicense LICENSE
|
vlicense LICENSE
|
||||||
|
|
||||||
|
for completion in bash fish zsh; do
|
||||||
|
vtargetrun $DESTDIR/usr/bin/mdbook completions $completion > mdbook.$completion
|
||||||
|
vcompletion mdbook.$completion $completion
|
||||||
|
done
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue