plasma-lyrics-git
LOW
maintainer TheSw1m
0 votes
scanned 2026-09-04 05:56:41.774165
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
2
pkgname=plasma-lyrics-git
3
pkgver=0.1.0.r2.g4d329c3
4
pkgrel=1
5
pkgdesc='Native synchronized desktop lyrics widget for Plasma 6'
6
arch=('x86_64')
7
url='https://github.com/swim233/plasma-lyrics'
8
license=('GPL-2.0-or-later')
9
# Arch ships the KF6 libraries without a kf6- prefix. libplasma and ksvg are
10
# named explicitly rather than leaned on through plasma-workspace, because the
11
# QML this widget imports comes from them directly. kdeclarative owns
12
# org.kde.kquickcontrols, whose ColorButton the config dialog needs -- missing
13
# it breaks only the config dialog, so the widget itself still looks fine.
14
# glibc, libgcc and libstdc++ are what the binaries actually link against; every
15
# other entry only satisfies them by accident, which is what namcap reports.
16
depends=('plasma-workspace' 'libplasma' 'kirigami' 'ksvg' 'ki18n' 'kdeclarative'
17
'qt6-base' 'qt6-declarative' 'glibc' 'libgcc' 'libstdc++')
18
# gettext supplies msgfmt, which builds the translation catalogues.
19
makedepends=('git' 'cmake' 'ninja' 'extra-cmake-modules' 'gettext')
20
provides=("${pkgname%-git}")
21
conflicts=("${pkgname%-git}")
22
source=("$pkgname::git+$url.git")
23
sha256sums=('SKIP')
24
25
pkgver() {
26
cd "$pkgname"
27
# The describe and the sed have to stay apart: a pipeline reports the exit
28
# status of its last command, so piping a failed describe into sed yields an
29
# empty version and a successful status, and the fallback never runs. Until
30
# the first tag exists, that is every build.
31
local described
32
if described=$(git describe --long --tags --abbrev=7 2>/dev/null); then
33
printf '%s' "$described" | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
34
else
35
printf '0.1.0.r%s.g%s' "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
36
fi
37
}
38
39
build() {
40
# None rather than Release: it leaves the compiler flags to makepkg.conf, so
41
# the package picks up Arch's hardening and debug-package settings instead of
42
# CMake's own -O3 -DNDEBUG. No production code path relies on assert().
43
cmake -S "$pkgname" -B build -G Ninja \
44
-DCMAKE_BUILD_TYPE=None \
45
-DCMAKE_INSTALL_PREFIX=/usr \
46
-DBUILD_TESTING=ON
47
cmake --build build
48
}
49
50
check() {
51
ctest --test-dir build --output-on-failure
52
}
53
54
package() {
55
DESTDIR="$pkgdir" cmake --install build
56
}
57
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-09-04 05:56:41 | Low | 1 |