void-packages/srcpkgs/mdBook/template
maxice8 973f3f3c17 mdBook: update to 0.1.7.
Closes: #13720 [via git-merge-pr]
2018-05-05 17:03:08 +02:00

25 lines
672 B
Bash

# Template file for 'mdBook'
pkgname=mdBook
version=0.1.7
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=8ffc44d05b15409968f2d09f4a707c60c31c30ea9142b2b18c21592f28ad3f76
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
}