# maintainer: Neophytos Kolokotronis pkgname=upower pkgver=0.9.23 pkgrel=1 pkgdesc="Abstraction for enumerating power devices, listening to device events and querying history and statistics" arch=('x86_64') url="http://upower.freedesktop.org" license=('GPL') depends=('systemd>=196' 'libusbx' 'polkit>=0.98' 'pm-utils>=1.4.1' 'dbus-glib>=0.92') makedepends=('pkg-config' 'intltool' 'docbook-xsl') replaces=('devicekit-power') options=('!libtool') install=upower.install source=($url/releases/${pkgname}-${pkgver}.tar.xz) md5sums=('39cfd97bfaf7d30908f20cf937a57634') build() { cd "${srcdir}/${pkgname}-${pkgver}" ./configure --prefix=/usr --sysconfdir=/etc \ --localstatedir=/var \ --libexecdir=/usr/lib/upower \ --with-systemdsystemunitdir=/usr/lib/systemd/system \ --disable-static make } package() { cd "$pkgname-$pkgver" make DESTDIR="$pkgdir" install }