blob: 9940bee4230998d425133b8cbb294ba659d46123 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
# Maintainer: Drew DeVault <sir@cmpwn.com>
pkgname=mdbook
pkgver=0.3.1
pkgrel=0
pkgdesc="mdBook is a utility to create modern online books from Markdown files"
url="https://rust-lang-nursery.github.io/mdBook"
arch="x86_64 x86 armhf armv7 aarch64 ppc64le" # limited by cargo
license="MPL-2.0"
makedepends="rust cargo"
source="$pkgname-$pkgver.tar.gz::https://github.com/rust-lang-nursery/mdBook/archive/v$pkgver.tar.gz"
builddir="$srcdir/mdBook-$pkgver"
export CARGO_HOME="$srcdir"/cargo
build() {
case "$CARCH" in
x86)
export CFLAGS="$CFLAGS -fno-stack-protector"
;;
esac
cargo build --release --verbose
}
check() {
cargo test --all --release --verbose
}
package() {
install -Dm755 target/release/mdbook "$pkgdir"/usr/bin/mdbook
}
sha512sums="807dd98bd08da7f6844b9c1b4bbe5a0e4939fd69a26e9fab93559b328816aebea93b81744f3ed3ae2a34fa4c54ffe3068d178325fe720dc679d20f648243ace6 mdbook-0.3.1.tar.gz"
|