balun-git
LOW
maintainer jmsq
0 votes
scanned 2026-09-05 20:01:32.631454
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: John-Michael Mulesa <jmulesa@gmail.com>
2
pkgname=balun-git
3
pkgver=0.1.0.r10.g92d14b5
4
pkgrel=1
5
pkgdesc="A lightweight cross-platform HDHomeRun live TV viewer (Git version)"
6
arch=('x86_64')
7
url="https://github.com/jm2/balun"
8
license=('GPL-3.0-or-later')
9
# The release profile already applies thin LTO and strips the binary, so
10
# makepkg's own LTO and debug-package handling are disabled.
11
options=('!lto' '!debug')
12
depends=(
13
'glibc'
14
'libgcc'
15
'gtk4>=4.16'
16
'libadwaita>=1.6'
17
'gstreamer>=1.20'
18
'gst-plugins-base-libs'
19
'gst-plugins-good'
20
'gst-plugins-bad-libs'
21
'gst-plugin-gtk4'
22
'gst-libav'
23
)
24
makedepends=(
25
'git'
26
'cargo'
27
'pkgconf'
28
)
29
# The upstream package compliance validator run in check() needs perl.
30
checkdepends=('perl')
31
provides=("${pkgname%-git}=${pkgver}")
32
conflicts=("${pkgname%-git}")
33
source=("${pkgname}::git+${url}.git")
34
sha256sums=('SKIP')
35
36
pkgver() {
37
cd "${pkgname}"
38
git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
39
}
40
41
prepare() {
42
cd "${pkgname}"
43
export RUSTUP_TOOLCHAIN=stable
44
cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
45
}
46
47
build() {
48
cd "${pkgname}"
49
export RUSTUP_TOOLCHAIN=stable
50
export CARGO_TARGET_DIR=target
51
# The desktop feature is required: the default feature set builds only the
52
# GTK-free core library and the balun-discover diagnostic.
53
cargo build --frozen --release --features desktop --bin balun
54
}
55
56
check() {
57
cd "${pkgname}"
58
build-aux/linux/validate-package-compliance.sh --elf target/release/balun
59
}
60
61
package() {
62
cd "${pkgname}"
63
64
# Binary
65
install -Dm755 "target/release/balun" "$pkgdir/usr/bin/balun"
66
67
# Desktop entry
68
install -Dm644 "data/io.github.jm2.Balun.desktop" \
69
"$pkgdir/usr/share/applications/io.github.jm2.Balun.desktop"
70
71
# AppStream metainfo
72
install -Dm644 "data/io.github.jm2.Balun.metainfo.xml" \
73
"$pkgdir/usr/share/metainfo/io.github.jm2.Balun.metainfo.xml"
74
75
# Icons
76
for size in 16 24 32 48 64 128 256 512; do
77
install -Dm644 \
78
"data/icons/hicolor/${size}x${size}/apps/io.github.jm2.Balun.png" \
79
"$pkgdir/usr/share/icons/hicolor/${size}x${size}/apps/io.github.jm2.Balun.png"
80
done
81
install -Dm644 "data/icons/hicolor/scalable/apps/io.github.jm2.Balun.svg" \
82
"$pkgdir/usr/share/icons/hicolor/scalable/apps/io.github.jm2.Balun.svg"
83
install -Dm644 "data/icons/hicolor/symbolic/apps/io.github.jm2.Balun-symbolic.svg" \
84
"$pkgdir/usr/share/icons/hicolor/symbolic/apps/io.github.jm2.Balun-symbolic.svg"
85
86
# License
87
install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
88
89
# Upstream's bundled-component policy gate over the installed tree
90
build-aux/linux/validate-package-compliance.sh --tree "$pkgdir"
91
}
92
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-09-05 20:01:32 | Low | 1 |