blob: a106c7361c6683b4fc5868447401786fb9d25247 (
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
|
# Maintainer: Cedric Bellegarde <cedric.bellegarde@adishatz.org>
pkgname=power-profiles-daemon
pkgver=0.12
pkgrel=1
pkgdesc="Makes power profiles handling available over D-Bus."
url="https://gitlab.freedesktop.org/hadess/power-profiles-daemon"
arch="all"
license="GPL-3.0-or-later"
depends="python3 py3-gobject3"
makedepends="
glib-dev
libgudev-dev
meson
polkit-dev
upower-dev
"
checkdepends="
py3-dbusmock
umockdev
"
source="https://gitlab.freedesktop.org/hadess/power-profiles-daemon/-/archive/$pkgver/power-profiles-daemon-$pkgver.tar.gz
dbus_no_systemd.patch
"
build() {
abuild-meson \
-Db_lto=true \
-Dsystemdsystemunitdir="" \
-Dtests="$(want_check && echo true || echo false)" \
. output
meson compile ${JOBS:+-j ${JOBS}} -C output
}
check() {
meson test --no-rebuild --print-errorlogs -C output
}
package() {
DESTDIR="$pkgdir" meson install --no-rebuild -C output
}
sha512sums="
d6645432751cbf94166307d2d3f982a598c28c0541bda666bc04c2da68ca7d0a129209312a9e6437fe80b786d7040ea34e5e921bc23f0a8d554f72fac1aada5a power-profiles-daemon-0.12.tar.gz
c33409d42125da771fdf9e0768560f7902c33b01d7c39304a5e53f691656ab4d9f9706a9c8f16006d25b6f3bef4913407a8caced075e78c593fdf1623adbcf6c dbus_no_systemd.patch
"
|