2023-10-24 15:39:45 +00:00

63 lines
1.5 KiB
Plaintext

# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: team/kde <bribbers@disroot.org>
# The group tag is just to easily find this APKBUILD by some scripts for automation
# group=kde-plasma
pkgname=plasma-systemmonitor
pkgver=5.27.9
pkgrel=0
pkgdesc="An application for monitoring system resources"
# armhf blocked by extra-cmake-modules
arch="all !armhf"
url="https://kde.org/plasma-desktop/"
license="LicenseRef-KDE-Accepted-GPL AND LicenseRef-KDE-Accepted-LGPL AND CC0-1.0"
depends="
kirigami2
ksystemstats
"
makedepends="
extra-cmake-modules
kconfig5-dev
kdbusaddons5-dev
kdeclarative5-dev
kglobalaccel5-dev
ki18n5-dev
kio5-dev
kitemmodels5-dev
knewstuff5-dev
kservice5-dev
libksysguard-dev
qt5-qtbase-dev
qt5-qtdeclarative-dev
samurai
"
case "$pkgver" in
*.90*) _rel=unstable;;
*) _rel=stable;;
esac
_repo_url="https://invent.kde.org/plasma/plasma-systemmonitor.git"
source="https://download.kde.org/$_rel/plasma/$pkgver/plasma-systemmonitor-$pkgver.tar.xz"
subpackages="$pkgname-lang"
build() {
cmake -B build -G Ninja \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib
cmake --build build
}
check() {
# ksystemstatstest is broken
ctest --test-dir build --output-on-failure -E "ksystemstatstest"
}
package() {
DESTDIR="$pkgdir" cmake --install build
}
sha512sums="
b11060575d28cb57a2c7c5f79bbaecd49d95d6e4abec6b61c1e3cf3ca74f726593827f605870d06392df4a5015c39274ff6a5edd129052596411bd5189af0bfc plasma-systemmonitor-5.27.9.tar.xz
"