mdv

LOW
maintainer erans 0 votes scanned 2026-11-03 08:04:08.432872
View on AUR
Why flagged

Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.

Triggered rules

Low Few votes, recently uploaded zero_votes_recent

Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.

PKGBUILD

1# mdv for the AUR. Every v* tag makes .github/workflows/release.yml rewrite
2# pkgver, pkgrel, source and sha256sums here and in .SRCINFO, then push both to
3# ssh://aur@aur.archlinux.org/mdv.git. After changing anything else in this
4# file, regenerate the metadata: cd aur && makepkg --printsrcinfo >.SRCINFO
5# Maintainer: Eran <erans@users.noreply.github.com>
6pkgname=mdv
7pkgver=0.1.1
8pkgrel=1
9pkgdesc='Terminal markdown viewer that follows your desktop palette, with inline images and rendered mermaid diagrams'
10arch=(x86_64 aarch64)
11url='https://github.com/erans/mdv'
12license=(MIT)
13makedepends=(go) # go.mod wants go >= 1.26.0
14optdepends=('xdg-utils: open document links in your browser')
15source=("$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/v$pkgver/$pkgname-$pkgver.tar.gz")
16sha256sums=('f82277b09e9cd102fb4ecdc73f525238f89e33006bce4247e1d8728a7a2a2410')
17
18build() {
19 cd "$pkgname-$pkgver"
20 # static, but PIE with full RELRO so it passes namcap's hardening checks
21 export CGO_ENABLED=0 GOFLAGS='-mod=readonly -trimpath -buildmode=pie'
22 go build -ldflags "-s -w -bindnow -X main.version=v$pkgver" -o mdv .
23 # man page and completions come from the binary, so they cannot drift
24 ./mdv -man > mdv.1
25 ./mdv -completions bash > mdv.bash
26 ./mdv -completions zsh > _mdv
27 ./mdv -completions fish > mdv.fish
28}
29
30package() {
31 cd "$pkgname-$pkgver"
32 install -Dm755 mdv "$pkgdir/usr/bin/mdv"
33 install -Dm644 mdv.1 "$pkgdir/usr/share/man/man1/mdv.1"
34 install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
35 install -Dm644 mdv.bash "$pkgdir/usr/share/bash-completion/completions/mdv"
36 install -Dm644 _mdv "$pkgdir/usr/share/zsh/site-functions/_mdv"
37 install -Dm644 mdv.fish "$pkgdir/usr/share/fish/vendor_completions.d/mdv.fish"
38}
39

Scan history

Scanned at (UTC)SeverityRules
2026-11-03 08:04:08 Low 1

Report a package

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

0 / 4000
Your suggestion