1 # Maintainer: George Rawlinson <grawlinson@archlinux.org>
3 pkgname=mdbook-linkcheck
6 pkgdesc='A mdbook backend which will check all links in a document are valid'
8 url='https://github.com/Michael-F-Bryan/mdbook-linkcheck'
11 makedepends=('git' 'rust')
13 _commit='bed5ebbae325d41bdccec382ecbe30f795738ca2'
14 source=("$pkgname::git+$url.git#commit=$_commit")
20 git describe --tags | sed 's/^v//'
26 # download dependencies
27 cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
33 cargo build --frozen --release --all-features
39 cargo test --frozen --all-features
46 install -vDm755 -t "$pkgdir/usr/bin" "target/release/$pkgname"
49 install -vDm644 -t "$pkgdir/usr/share/doc/$pkgname" README.md
52 install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE