2017-11-28 04:35:50 +01:00
|
|
|
# Template file for 'mdBook'
|
|
|
|
pkgname=mdBook
|
2018-02-06 19:51:08 +01:00
|
|
|
version=0.1.3
|
2017-11-28 04:35:50 +01:00
|
|
|
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}"
|
2018-02-06 19:51:08 +01:00
|
|
|
distfiles="https://github.com/rust-lang-nursery/${pkgname}/archive/v${version}.tar.gz"
|
|
|
|
checksum=c2bb84547e0c41980dc9ebc1117c409fb3b81aadc94ce7a2fd7b0a2181ca1bf7
|
2017-11-28 04:35:50 +01:00
|
|
|
nocross="This cannot be cross compiled due to limitations in cargo."
|
|
|
|
|
|
|
|
do_build() {
|
|
|
|
cargo build --release
|
|
|
|
}
|
|
|
|
|
2017-12-09 12:06:44 +01:00
|
|
|
do_check() {
|
|
|
|
cargo test --release
|
|
|
|
}
|
|
|
|
|
2017-11-28 04:35:50 +01:00
|
|
|
do_install() {
|
|
|
|
vbin target/release/mdbook
|
|
|
|
vlicense LICENSE
|
|
|
|
}
|