markview

LOW
maintainer szdytom 0 votes scanned 2026-09-16 13:22:46.391962
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# Maintainer: szdytom <szdytom@users.noreply.github.com>
2#
3# `markview-bin` packages the prebuilt archive from the same release. Both
4# install the same files, so they conflict with each other.
5pkgname=markview
6pkgver=0.1.0
7pkgrel=2
8pkgdesc='Native, read-only Markdown reader with optimized paragraph layout'
9arch=('x86_64')
10url='https://github.com/szdytom/markview'
11license=('MIT')
12depends=(
13 'fontconfig'
14 'glibc'
15 'libx11'
16 'libxcursor'
17 'libxi'
18 'libxkbcommon'
19 'wayland'
20 'vulkan-icd-loader'
21 'xdg-desktop-portal'
22)
23makedepends=('cargo' 'rust>=1.88' 'fontconfig')
24optdepends=(
25 'noto-fonts-cjk: CJK glyphs for Chinese, Japanese, and Korean text'
26 'noto-fonts-emoji: colour Emoji glyphs'
27 'vulkan-intel: Vulkan driver for Intel GPUs'
28 'vulkan-nouveau: Vulkan driver for NVIDIA GPUs with Nouveau'
29 'vulkan-radeon: Vulkan driver for AMD GPUs'
30)
31install="$pkgname.install"
32source=(
33 "$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/v$pkgver.tar.gz"
34 'markview.mime.xml'
35)
36sha256sums=(
37 'b4be708ef5df54b193c2bffacafd7fa81130c662878e1271cb39883e9e0c31f9'
38 'c2b54efc155e407495127927cabafb92b369a4ead7e1a04d8246f9939bf280b0'
39)
40
41build() {
42 local cargo_home="$srcdir/cargo-home"
43 local target_dir="$srcdir/target"
44 export CARGO_HOME="$cargo_home"
45 export CARGO_TARGET_DIR="$target_dir"
46
47 cd "$pkgname-$pkgver"
48
49 # `makepkg` exports Arch's `CFLAGS`, whose `-flto=auto` the `cc` crate
50 # passes while compiling `ring`'s hand-written assembly. Those LTO objects
51 # then lose their `ring_core_*` symbols at rustc's final link, so the
52 # compiler flags are dropped for this build and cargo owns the C flags.
53 unset CFLAGS CXXFLAGS LDFLAGS
54
55 # Pinning to the stable toolchain keeps the build off a rustup-default
56 # nightly. `+stable` is a no-op on a plain `rust` installation.
57 # The registry lives under `$srcdir` so that nothing is written to the
58 # builder's home directory, and so the cache is removed with the build.
59 cargo +stable fetch --locked
60 cargo +stable build --release --locked --offline
61}
62
63package() {
64 cd "$pkgname-$pkgver"
65
66 install -Dm755 "$srcdir/target/release/$pkgname" \
67 "$pkgdir/usr/bin/$pkgname"
68
69 install -Dm644 packaging/markview.desktop \
70 "$pkgdir/usr/share/applications/$pkgname.desktop"
71 install -Dm644 assets/markview-icon-color.svg \
72 "$pkgdir/usr/share/icons/hicolor/scalable/apps/$pkgname.svg"
73 for size in 16 32 48 64 128 256 512 1024; do
74 install -Dm644 "assets/icons/$pkgname-$size.png" \
75 "$pkgdir/usr/share/icons/hicolor/${size}x${size}/apps/$pkgname.png"
76 done
77 install -Dm644 "$srcdir/markview.mime.xml" \
78 "$pkgdir/usr/share/mime/packages/$pkgname.xml"
79
80 install -Dm644 README.md "$pkgdir/usr/share/doc/$pkgname/README.md"
81 install -Dm644 THIRD_PARTY.md "$pkgdir/usr/share/doc/$pkgname/THIRD_PARTY.md"
82 install -Dm644 licenses/KaTeX-OFL.txt \
83 "$pkgdir/usr/share/doc/$pkgname/KaTeX-OFL.txt"
84 install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
85}
86

Scan history

Scanned at (UTC)SeverityRules
2026-09-16 13:22:46 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