blob: 1cfb225273f1f01cb39abc9100ad4b07fe809ec5 (
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
38
|
# $Id: PKGBUILD 197688 2013-10-28 13:45:39Z jgc $
# 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')
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
}
|