blob: fdd83d0ba7e19f649bdde9257a7b80afcae83ef5 (
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
36
37
38
39
|
# Maintainer: wisp3rwind <17089248+wisp3rwind@users.noreply.github.com>
pkgname=rust-cli-book-git
pkgver=r287.a3d4bff
pkgrel=1
pkgdesc="Command line apps in Rust"
arch=('any')
url="https://rust-cli.github.io/book/index.html"
license=('MIT')
makedepends=('mdbook')
source=("${pkgname%-*}::git+https://github.com/rust-cli/book.git")
b2sums=('SKIP')
pkgver() {
cd "${pkgname%-*}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "${pkgname%-*}"
mdbook build
}
check() {
cd "${pkgname%-*}"
mdbook test
}
package() {
cd "${pkgname%-*}"
dest="$pkgdir/usr/share/doc/rust-cli-book/html"
install -d "$dest"
cp -a book/* "$dest"
}
# vim:set ts=2 sw=2 et:
|