# $Id: PKGBUILD 185169 2013-05-11 16:16:34Z tomegun $ # Maintainer: Jan de Groot pkgname=upower pkgver=0.9.20 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' 'pm-utils' 'dbus-glib' 'libimobiledevice') makedepends=('intltool' 'docbook-xsl' 'gobject-introspection' 'systemd') options=('!libtool') source=($url/releases/$pkgname-$pkgver.tar.xz) md5sums=('f175984d142dc8d2353a7da609836b69') build() { cd "$pkgname-$pkgver" # put udev files in /usr/lib # should be dropped as of 0.9.21!! sed -i "/slashlibdir=/s#/lib#/usr/lib#" configure ./configure --prefix=/usr --sysconfdir=/etc \ --localstatedir=/var \ --libexecdir=/usr/lib/$pkgname \ --disable-static \ --enable-deprecated make } package() { cd "$pkgname-$pkgver" make DESTDIR="$pkgdir" install }