plasma-nethogs-git
LOW
maintainer TheSw1m
0 votes
scanned 2026-08-24 11:22:50.619045
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: swim <swim853279614@163.com>
2
3
pkgname=plasma-nethogs-git
4
_srcname=plasma-nethogs
5
pkgver=r6.g88c78a8
6
pkgrel=1
7
pkgdesc="Plasma 6 widget showing which applications are using the network, fed by an eBPF collector"
8
arch=('x86_64' 'aarch64')
9
url="https://github.com/swim233/plasma-nethogs"
10
license=('GPL-2.0-or-later')
11
depends=(
12
'glibc'
13
'kcmutils'
14
'kirigami'
15
'ksvg'
16
'libbpf'
17
'libplasma'
18
'libstdc++'
19
# plasmashell, which hosts the applet. No file in the package points at it,
20
# so namcap reports it as possibly unneeded; it is not.
21
'plasma-workspace'
22
'plasma5support'
23
'qt6-base'
24
'qt6-declarative'
25
)
26
makedepends=(
27
'bpf'
28
'clang'
29
'cmake'
30
'extra-cmake-modules'
31
'git'
32
'kpackage'
33
'ninja'
34
)
35
provides=("${pkgname%-git}")
36
conflicts=("${pkgname%-git}")
37
install="${pkgname%-git}.install"
38
source=("${_srcname}::git+${url}.git")
39
sha256sums=('SKIP')
40
41
pkgver() {
42
cd "$_srcname"
43
printf 'r%s.g%s' "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
44
}
45
46
build() {
47
# vmlinux.h is generated from /sys/kernel/btf/vmlinux, so the build machine's
48
# kernel needs CONFIG_DEBUG_INFO_BTF=y. devtools chroots mount /sys, so a
49
# clean-chroot build works. CO-RE resolves the relocations against whatever
50
# kernel is running at load time, so the result is not tied to this one.
51
cmake -S "$_srcname" -B build -G Ninja \
52
-DCMAKE_BUILD_TYPE=None \
53
-DCMAKE_INSTALL_PREFIX=/usr \
54
-DBUILD_TESTING=OFF
55
cmake --build build
56
}
57
58
package() {
59
DESTDIR="$pkgdir" cmake --install build
60
install -Dm644 "$_srcname/README.md" \
61
"$pkgdir/usr/share/doc/${pkgname%-git}/README.md"
62
}
63
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-08-24 11:22:50 | Low | 1 |