# Maintainer: A. Wilcox pkgname=upower pkgver=1.90.2 pkgrel=0 pkgdesc="Power Management Services" url="https://upower.freedesktop.org" arch="all" options="!check" # Requires running dbus. license="GPL-2.0+" depends="" subpackages="$pkgname-dev $pkgname-doc $pkgname-lang" makedepends="dbus-glib-dev docbook-xsl elogind-dev gobject-introspection-dev gtk+2.0-dev gtk-doc libgudev-dev libusb-dev libxslt linux-headers meson ninja polkit-dev" source="https://gitlab.freedesktop.org/upower/upower/-/archive/v$pkgver/upower-v$pkgver.tar.bz2" builddir="$srcdir"/$pkgname-v$pkgver build() { meson setup \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --localstatedir=/var \ --libexecdir=/usr/lib/upower \ --buildtype=release \ -Dsystemdsystemunitdir=no \ . output meson compile -C output } check() { meson test -C output } package() { DESTDIR="$pkgdir" meson install -C output } sha512sums="9cdaea76d604e79bb385c2d7d8df26ab74d8fbbd5ddd271d7dc3323ae4f98ce9504ce807638e008869fdec0e1fcaf8d4be53e486714913616b8df73d8e4ac396 upower-v1.90.2.tar.bz2"