# Template file for 'mdBook-legacy'
pkgname=mdBook-legacy
version=0.4.35
revision=1
build_style=cargo
short_desc="Create book from markdown files. Like Gitbook but implemented in Rust"
maintainer="classabbyamp <void@placeviolette.net>"
license="MPL-2.0"
homepage="https://github.com/rust-lang/mdBook"
changelog="https://raw.githubusercontent.com/rust-lang/mdBook/master/CHANGELOG.md"
distfiles="https://github.com/rust-lang/mdBook/archive/refs/tags/v${version}.tar.gz"
checksum=2fcefce12acc957c1d604e60c309502b9ec37040f6f70656f12c81374ff27bd4

short_desc+=" - legacy version for void-docs"

post_install() {
	vlicense LICENSE
	mv "${DESTDIR}"/usr/bin/mdbook "${DESTDIR}"/usr/bin/mdbook-legacy
}
