markview-bin
LOW
maintainer szdytom
0 votes
scanned 2026-09-16 13:22:46.391962
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` builds the same program from source. Both install the same files,
4
# so they conflict with each other.
5
pkgname=markview-bin
6
pkgver=0.1.0
7
pkgrel=2
8
pkgdesc='Native, read-only Markdown reader with optimized paragraph layout'
9
arch=('x86_64')
10
url='https://github.com/szdytom/markview'
11
license=('MIT')
12
depends=(
13
'fontconfig'
14
'glibc'
15
'libx11'
16
'libxcursor'
17
'libxi'
18
'libxkbcommon'
19
'wayland'
20
'vulkan-icd-loader'
21
'xdg-desktop-portal'
22
)
23
optdepends=(
24
'noto-fonts-cjk: CJK glyphs for Chinese, Japanese, and Korean text'
25
'noto-fonts-emoji: colour Emoji glyphs'
26
'vulkan-intel: Vulkan driver for Intel GPUs'
27
'vulkan-nouveau: Vulkan driver for NVIDIA GPUs with Nouveau'
28
'vulkan-radeon: Vulkan driver for AMD GPUs'
29
)
30
provides=('markview')
31
conflicts=('markview')
32
install="$pkgname.install"
33
# The release archive carries only the executable and the license texts. The
34
# desktop entry and the icons do not exist as standalone release assets, so the
35
# matching source archive is fetched as well and `prepare()` takes them from
36
# there. Every source is checksummed; nothing is downloaded during packaging.
37
source=(
38
"$pkgname-$pkgver.tar.gz::$url/releases/download/v$pkgver/markview-x86_64-unknown-linux-gnu.tar.gz"
39
"markview-$pkgver-src.tar.gz::$url/archive/refs/tags/v$pkgver.tar.gz"
40
'markview.mime.xml'
41
)
42
sha256sums=(
43
'a056f4c9b634fef8e59d63c50b3539bd1eb688f98ba4796d89535f6b228aaea5'
44
'b4be708ef5df54b193c2bffacafd7fa81130c662878e1271cb39883e9e0c31f9'
45
'c2b54efc155e407495127927cabafb92b369a4ead7e1a04d8246f9939bf280b0'
46
)
47
48
prepare() {
49
local src="$srcdir/markview-$pkgver"
50
51
bsdtar -x --no-same-owner -f "$srcdir/markview-$pkgver-src.tar.gz" -C "$srcdir" \
52
"markview-$pkgver/packaging/markview.desktop" \
53
"markview-$pkgver/assets/markview-icon-color.svg"
54
mv "$src/packaging/markview.desktop" "$srcdir/markview.desktop"
55
mv "$src/assets/markview-icon-color.svg" "$srcdir/markview-icon-color.svg"
56
57
local size
58
for size in 16 32 48 64 128 256 512 1024; do
59
bsdtar -x --no-same-owner -f "$srcdir/markview-$pkgver-src.tar.gz" \
60
-C "$srcdir" "markview-$pkgver/assets/icons/markview-$size.png"
61
mv "$src/assets/icons/markview-$size.png" "$srcdir/markview-$size.png"
62
done
63
rm -rf "$src"
64
}
65
66
package() {
67
local doc="$srcdir/markview-x86_64-unknown-linux-gnu"
68
69
install -Dm755 "$doc/markview" "$pkgdir/usr/bin/markview"
70
71
install -Dm644 "$srcdir/markview.desktop" \
72
"$pkgdir/usr/share/applications/markview.desktop"
73
install -Dm644 "$srcdir/markview-icon-color.svg" \
74
"$pkgdir/usr/share/icons/hicolor/scalable/apps/markview.svg"
75
for size in 16 32 48 64 128 256 512 1024; do
76
install -Dm644 "$srcdir/markview-$size.png" \
77
"$pkgdir/usr/share/icons/hicolor/${size}x${size}/apps/markview.png"
78
done
79
install -Dm644 "$srcdir/markview.mime.xml" \
80
"$pkgdir/usr/share/mime/packages/markview.xml"
81
82
install -Dm644 "$doc/README.md" "$pkgdir/usr/share/doc/$pkgname/README.md"
83
install -Dm644 "$doc/THIRD_PARTY.md" \
84
"$pkgdir/usr/share/doc/$pkgname/THIRD_PARTY.md"
85
install -Dm644 "$doc/licenses/KaTeX-OFL.txt" \
86
"$pkgdir/usr/share/doc/$pkgname/KaTeX-OFL.txt"
87
install -Dm644 "$doc/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
88
}
89
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-09-16 13:22:46 | Low | 1 |