blob: ee9e5456dda204b9ab017587493459a8b0b0fe70 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
|
# 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=powerdevil
pkgver=6.0.3
pkgrel=0
pkgdesc="Manages the power consumption settings of a Plasma Shell"
# armhf blocked by extra-cmake-modules
arch="all !armhf"
url="https://kde.org/plasma-desktop/"
license="GPL-2.0-or-later AND LGPL-2.0-or-later AND (LGPL-2.1-only OR LGPL-3.0-only)"
depends="upower"
depends_dev="
bluez-qt-dev
ddcutil-dev
eudev-dev
kauth-dev
kcmutils-dev
kconfig-dev
kcrash-dev
kdbusaddons-dev
kglobalaccel-dev
ki18n-dev
kidletime-dev
kio-dev
kirigami-dev
kitemmodels-dev
knotifications-dev
knotifyconfig-dev
kwayland-dev
libkscreen-dev
networkmanager-qt-dev
plasma-activities-dev
plasma-workspace-dev
qt6-qtbase-dev
solid-dev
"
makedepends="$depends_dev
extra-cmake-modules
kdoctools-dev
libcap-utils
samurai
"
checkdepends="bash"
case "$pkgver" in
*.90*) _rel=unstable;;
*) _rel=stable;;
esac
subpackages="$pkgname-dev $pkgname-libs $pkgname-doc $pkgname-lang"
_repo_url="https://invent.kde.org/plasma/powerdevil.git"
source="https://download.kde.org/stable/plasma/$pkgver/powerdevil-$pkgver.tar.xz"
build() {
# HAVE_DDCUTIL needs to be set manually for now but is enabled by default in the next
# (post 5.28.x) powerdevil version. Nothing changed in particular warranting it to be
# enabled again, but upstream mentions the reasons for originally disabling it by default
# aren't known anymore and it's time to re-enable again
cmake -B build -G Ninja \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib
cmake --build build
}
check() {
ctest --test-dir build --output-on-failure -E "migrateconfig_test(1_default_configs_can_suspend_to_ram|2_activities|2a_activities_no_double_migration|3_profiles|4_profiles_more)"
}
package() {
DESTDIR="$pkgdir" cmake --install build
# We don't ship systemd
rm -r "$pkgdir"/usr/lib/systemd
# org_kde_powerdevil has CAP_WAKE_ALARM set and this breaks dbus
# Remove CAP_WAKE_ALARM from org_kde_powerdevil to make it work again
setcap -r "$pkgdir"/usr/lib/libexec/org_kde_powerdevil
}
sha512sums="
e96db98ac84a7d98445a79acb1cfc3878d4ffa9c8de55094d3e918458335825b34e0251557c10665963330f93760df898d2577f09d4badce3d965efb3dec41ee powerdevil-6.0.3.tar.xz
"
|