blob: 891dacb4233e363395f67318f593b85f18b2cc2d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
# $Id: PKGBUILD 198471 2013-10-30 15:04:10Z allan $
# Maintainer: Jan de Groot <jgc@archlinux.org>
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')
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
}
|