# $Id: PKGBUILD 197688 2013-10-28 13:45:39Z jgc $ # Maintainer: Jan de Groot pkgname=upower pkgver=0.9.23 pkgrel=2 pkgdesc="Abstraction for enumerating power devices, listening to device events and querying history and statistics" arch=('i686' 'x86_64') url="http://upower.freedesktop.org" license=('GPL') depends=('systemd-tools' 'libsystemd' 'libusb' 'polkit' 'dbus-glib' 'libimobiledevice') makedepends=('intltool' 'docbook-xsl' 'gobject-introspection' 'systemd') backup=('etc/UPower/UPower.conf') options=('!libtool') source=($url/releases/$pkgname-$pkgver.tar.xz linux-clamp-percentage-for-overfull-batteries.patch) md5sums=('39cfd97bfaf7d30908f20cf937a57634' 'cd8eeb40c2338d28df46e22529bece62') prepare() { cd $pkgname-$pkgver patch -Np1 -i ../linux-clamp-percentage-for-overfull-batteries.patch } build() { cd "$pkgname-$pkgver" ./configure --prefix=/usr --sysconfdir=/etc \ --localstatedir=/var \ --libexecdir=/usr/lib/$pkgname \ --disable-static make } package() { cd "$pkgname-$pkgver" make DESTDIR="$pkgdir" install }