blob: fb73f6d8a7ea8b054289e2f7ff3c81b9f3d9b528 (
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
33
34
35
|
# Maintainer: Fabio 'Lolix' Loli <lolix@disroot.org> -> https://github.com/FabioLolix
pkgname=mdbook-git
pkgver=0.3.4.r10.g1f505c2b2
pkgrel=1
pkgdesc="Create book from markdown files, like Gitbook but implemented in Rust"
url="https://github.com/rust-lang-nursery/mdBook"
arch=(x86_64 i686 arm armv6h armv7h aarch64)
license=(MPL2)
makedepends=(rust cargo git)
provides=(mdbook)
conflicts=(mdbook)
source=("git+${url}.git")
md5sums=('SKIP')
pkgver() {
cd "mdBook"
git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd "mdBook"
cargo build --release
}
check() {
cd "mdBook"
cargo test
}
package() {
cd "mdBook"
install -Dm 755 "target/release/mdbook" "${pkgdir}/usr/bin/mdbook"
}
|