void-packages/srcpkgs/mdBook/template

23 lines
756 B
Bash

# Template file for 'mdBook'
pkgname=mdBook
version=0.4.37
revision=2
build_style=cargo
build_helper=qemu
short_desc="Create book from markdown files. Like Gitbook but implemented in Rust"
maintainer="Érico Nogueira <ericonr@disroot.org>"
license="MPL-2.0"
homepage="https://github.com/rust-lang/mdBook"
changelog="https://raw.githubusercontent.com/rust-lang/mdBook/master/CHANGELOG.md"
distfiles="https://github.com/rust-lang/mdBook/archive/refs/tags/v${version}.tar.gz"
checksum=7a360cb8702d8a35d9db9d0639a6a4650d3a9492970cf772f49c5a99d981272c
post_install() {
vlicense LICENSE
for completion in bash fish zsh; do
vtargetrun $DESTDIR/usr/bin/mdbook completions $completion > mdbook.$completion
vcompletion mdbook.$completion $completion
done
}