26 lines
672 B
Bash
26 lines
672 B
Bash
# Template file for 'mdBook'
|
|
pkgname=mdBook
|
|
version=0.2.0
|
|
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=eefb437f9fc3961edeb54f0f3fbea05390472fa362d6cf641556e91a96a25780
|
|
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
|
|
}
|