1 # Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
2 # Contributor: Jan de Groot <jgc@archlinux.org>
7 pkgdesc="Abstraction for enumerating power devices, listening to device events and querying history and statistics"
8 url="https://upower.freedesktop.org"
11 depends=(systemd libimobiledevice libgudev)
12 makedepends=(docbook-xsl gobject-introspection python git gtk-doc meson)
13 checkdepends=(python-{dbus,dbusmock,gobject} umockdev)
14 backup=(etc/UPower/UPower.conf)
16 _commit=e9d73a31154dab202ac9438a24fa2a67c34f686d # tags/v0.99.19^0
17 source=("git+https://gitlab.freedesktop.org/upower/upower.git#commit=$_commit")
22 git describe --tags | sed -e 's/^v\|^UPOWER_//;s/_/\./g;s/[^-]*-g/r&/;s/-/+/g'
30 arch-meson upower build
31 meson compile -C build
35 meson test -C build --print-errorlogs
39 depends+=(libg{lib,object,io}-2.0.so)
40 provides+=(libupower-glib.so)
42 meson install -C build --destdir "$pkgdir"