summaryrefslogtreecommitdiff
path: root/extra/upower/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'extra/upower/PKGBUILD')
-rw-r--r--extra/upower/PKGBUILD26
1 files changed, 14 insertions, 12 deletions
diff --git a/extra/upower/PKGBUILD b/extra/upower/PKGBUILD
index 5daa68aa3..15586e6ad 100644
--- a/extra/upower/PKGBUILD
+++ b/extra/upower/PKGBUILD
@@ -1,31 +1,33 @@
-# $Id: PKGBUILD 185169 2013-05-11 16:16:34Z tomegun $
+# $Id: PKGBUILD 198471 2013-10-30 15:04:10Z allan $
# Maintainer: Jan de Groot <jgc@archlinux.org>
pkgname=upower
-pkgver=0.9.20
+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' 'mips64el')
url="http://upower.freedesktop.org"
license=('GPL')
-depends=('systemd-tools' 'libsystemd' 'libusb' 'polkit' 'pm-utils' 'dbus-glib' 'libimobiledevice')
+depends=('systemd-tools' 'libsystemd' 'libusb' 'polkit' 'dbus-glib' 'libimobiledevice')
makedepends=('intltool' 'docbook-xsl' 'gobject-introspection' 'systemd')
-options=('!libtool')
-source=($url/releases/$pkgname-$pkgver.tar.xz)
-md5sums=('f175984d142dc8d2353a7da609836b69')
+backup=('etc/UPower/UPower.conf')
+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"
- # 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
+ --disable-static
make
}