mdbook-git

MEDIUM
maintainer agony4001 1 votes scanned 2026-11-01 14:00:44.307000
View on AUR
Why flagged

This package was orphaned and re-adopted within the last 30 days — a window where ownership transfers can introduce malicious changes.

Triggered rules

Medium Recently orphaned & re-adopted orphaned_readopted

This package was orphaned and re-adopted within the last 30 days — a window where ownership transfers can introduce malicious changes.

PKGBUILD

1# Maintainer: Filipe Nascimento <flipee at tuta dot io>
2# Contributor: Fabio 'Lolix' Loli <fabio.loli@disroot.org> -> https://github.com/FabioLolix
3
4pkgname=mdbook-git
5pkgver=0.4.12.r0.ge6629cd7
6pkgrel=2
7pkgdesc="Create book from markdown files, like Gitbook but implemented in Rust"
8url="https://github.com/rust-lang-nursery/mdBook"
9arch=('x86_64' 'i686' 'arm' 'armv6h' 'armv7h' 'aarch64')
10license=('MPL2')
11depends=('gcc-libs')
12makedepends=('cargo' 'git')
13provides=('mdbook')
14conflicts=('mdbook')
15source=("git+${url}.git")
16md5sums=('SKIP')
17
18pkgver() {
19 cd mdBook
20 git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
21}
22
23prepare() {
24 cd mdBook
25 mkdir -p completions/
26 cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
27}
28
29build() {
30 cd mdBook
31 export RUSTUP_TOOLCHAIN=stable
32 export CARGO_TARGET_DIR=target
33 cargo build --frozen --release
34 ./target/release/mdbook completions bash > completions/mdbook.bash
35 ./target/release/mdbook completions fish > completions/mdbook.fish
36 ./target/release/mdbook completions zsh > completions/_mdbook
37}
38
39check() {
40 cd mdBook
41 export RUSTUP_TOOLCHAIN=stable
42 cargo test --frozen
43}
44
45package() {
46 cd mdBook
47 install -Dm755 target/release/mdbook -t "$pkgdir/usr/bin"
48 install -Dm644 README.md -t "$pkgdir/usr/share/doc/mdbook"
49 install -Dm644 completions/mdbook.bash "$pkgdir/usr/share/bash-completion/completions/mdbook"
50 install -Dm644 completions/mdbook.fish -t "$pkgdir/usr/share/fish/vendor_completions.d"
51 install -Dm644 completions/_mdbook -t "$pkgdir/usr/share/zsh/site-functions"
52}
53

Scan history

Scanned at (UTC)SeverityRules
2026-11-01 14:00:44 Medium 1
2026-06-18 16:11:54 Clean 0

Report a package

Reports go to the AURWatch maintainer (one person) and are read by hand. No login required.

0 / 4000
Your suggestion