mdBook: use cargo buildstyle
This commit is contained in:
parent
687caa5b05
commit
e71e746e1f
1 changed files with 3 additions and 13 deletions
|
@ -1,25 +1,15 @@
|
||||||
# Template file for 'mdBook'
|
# Template file for 'mdBook'
|
||||||
pkgname=mdBook
|
pkgname=mdBook
|
||||||
version=0.2.1
|
version=0.2.1
|
||||||
revision=1
|
revision=2
|
||||||
hostmakedepends="cargo"
|
build_style=cargo
|
||||||
short_desc="Create book from markdown files. Like Gitbook but implemented in Rust"
|
short_desc="Create book from markdown files. Like Gitbook but implemented in Rust"
|
||||||
maintainer="Huidong Hwang <hwangh95@gmail.com>"
|
maintainer="Huidong Hwang <hwangh95@gmail.com>"
|
||||||
license="MPL-2.0"
|
license="MPL-2.0"
|
||||||
homepage="https://github.com/rust-lang-nursery/${pkgname}"
|
homepage="https://github.com/rust-lang-nursery/${pkgname}"
|
||||||
distfiles="https://github.com/rust-lang-nursery/${pkgname}/archive/v${version}.tar.gz"
|
distfiles="https://github.com/rust-lang-nursery/${pkgname}/archive/v${version}.tar.gz"
|
||||||
checksum=2d3d57120a082d973fded27ac1e9fb36078a1e24692ceebb887a11567552642d
|
checksum=2d3d57120a082d973fded27ac1e9fb36078a1e24692ceebb887a11567552642d
|
||||||
nocross="This cannot be cross compiled due to limitations in cargo."
|
|
||||||
|
|
||||||
do_build() {
|
post_install() {
|
||||||
cargo build --release
|
|
||||||
}
|
|
||||||
|
|
||||||
do_check() {
|
|
||||||
cargo test --release
|
|
||||||
}
|
|
||||||
|
|
||||||
do_install() {
|
|
||||||
vbin target/release/mdbook
|
|
||||||
vlicense LICENSE
|
vlicense LICENSE
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue