Verified Commit 81db17f1 authored by prspkt's avatar prspkt
Browse files

testing/mdbook: upgrade to 0.4.11

 - Add shell completions.
parent 84ce018e
Pipeline #88722 passed with stages
in 31 minutes
# Maintainer: Drew DeVault <sir@cmpwn.com>
pkgname=mdbook
pkgver=0.4.10
pkgver=0.4.11
pkgrel=0
pkgdesc="mdBook is a utility to create modern online books from Markdown files"
url="https://rust-lang.github.io/mdBook/"
arch="all !s390x !mips !mips64 !riscv64" # limited by cargo
license="MPL-2.0"
makedepends="rust cargo"
subpackages="
$pkgname-bash-completion
$pkgname-fish-completion
$pkgname-zsh-completion
"
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
......@@ -21,8 +26,19 @@ check() {
package() {
install -Dm755 target/release/mdbook "$pkgdir"/usr/bin/mdbook
target/release/mdbook completions bash > mdbook.bash
target/release/mdbook completions fish > mdbook.fish
target/release/mdbook completions zsh > _mdbook
install -Dm644 mdbook.bash \
"$pkgdir/usr/share/bash-completion/completions/mdbook"
install -Dm644 mdbook.fish \
"$pkgdir/usr/share/fish/completions/mdbook.fish"
install -Dm644 _mdbook \
"$pkgdir/usr/share/zsh/site-functions/_mdbook"
}
sha512sums="
309b51b4765e8c5ff354d3da1e77f552662f97ca312e60ceba4aa10da3b2d51d0ee750811e65a5044dacb2fd3720c9f65ff6968fd242e16c16644247f40e2ee5 mdbook-0.4.10.tar.gz
cb145e8645594ac8bab59f4abe2d3fecd9437908e7c1ef9354ba82a8f20199ed55d962944038e6d4ec8003f4374e7ead5148aeaf3b42aab1dfe60e8e57956fc8 mdbook-0.4.11.tar.gz
"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment