plasma-lyrics-git

LOW
maintainer TheSw1m 0 votes scanned 2026-09-04 05:56:41.774165
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: swim
2pkgname=plasma-lyrics-git
3pkgver=0.1.0.r2.g4d329c3
4pkgrel=1
5pkgdesc='Native synchronized desktop lyrics widget for Plasma 6'
6arch=('x86_64')
7url='https://github.com/swim233/plasma-lyrics'
8license=('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.
16depends=('plasma-workspace' 'libplasma' 'kirigami' 'ksvg' 'ki18n' 'kdeclarative'
17 'qt6-base' 'qt6-declarative' 'glibc' 'libgcc' 'libstdc++')
18# gettext supplies msgfmt, which builds the translation catalogues.
19makedepends=('git' 'cmake' 'ninja' 'extra-cmake-modules' 'gettext')
20provides=("${pkgname%-git}")
21conflicts=("${pkgname%-git}")
22source=("$pkgname::git+$url.git")
23sha256sums=('SKIP')
24
25pkgver() {
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
39build() {
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
50check() {
51 ctest --test-dir build --output-on-failure
52}
53
54package() {
55 DESTDIR="$pkgdir" cmake --install build
56}
57

Scan history

Scanned at (UTC)SeverityRules
2026-09-04 05:56:41 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