void-packages/srcpkgs/mdBook/template
maxice8 c5182c3c41 mdBook: update to 0.1.5.
Closes: #12607 [via git-merge-pr]
2018-03-16 20:52:47 -07:00

25 lines
672 B
Bash

# Template file for 'mdBook'
pkgname=mdBook
version=0.1.5
revision=1
hostmakedepends="cargo"
short_desc="Create book from markdown files. Like Gitbook but implemented in Rust"
maintainer="Huidong Hwang <hwangh95@gmail.com>"
license="MPL-2.0"
homepage="https://github.com/rust-lang-nursery/${pkgname}"
distfiles="https://github.com/rust-lang-nursery/${pkgname}/archive/v${version}.tar.gz"
checksum=a93f68f834e9175e1d05edf86aa9c996fbe52ac449a0dc27949c83ffc675449b
nocross="This cannot be cross compiled due to limitations in cargo."
do_build() {
cargo build --release
}
do_check() {
cargo test --release
}
do_install() {
vbin target/release/mdbook
vlicense LICENSE
}