blob: 27342fe4ed7de8ea900f6e462c2b0fb13995761e (
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
39
40
41
42
43
44
45
46
47
48
49
50
|
# Contributor: Jan de Groot <jgc@archlinux.org>
# Maintainer: Star Brilliant <m13253@hotmail.com>
pkgname=upower-nocritical
_pkgname=upower
pkgver=0.99.4+12+g402640b
pkgrel=1
pkgdesc="Abstraction for enumerating power devices, listening to device events and querying history and statistics (With a patch to disable low battery action)"
arch=('i686' 'x86_64')
url="http://upower.freedesktop.org"
license=('GPL')
depends=('systemd' 'libusb' 'libimobiledevice' 'libgudev')
makedepends=('intltool' 'docbook-xsl' 'gobject-introspection' 'python2' 'git' 'gtk-doc')
provides=('upower')
conflicts=('upower')
backup=('etc/UPower/UPower.conf')
_commit=402640bee016472bf61c7a4ad9e5fac9790ea1bf
source=(git://anongit.freedesktop.org/upower#commit=$_commit
0001-Add-a-critical-action-Ignore.patch)
md5sums=('SKIP'
'69fbeb7e5906a59fd39f702d01f83815')
pkgver() {
cd $_pkgname
git describe --tags | sed -e 's/UPOWER_//' -e 's/_/\./g' -e 's/-/+/g'
}
prepare() {
cd $_pkgname
patch -p1 < "$srcdir/0001-Add-a-critical-action-Ignore.patch"
}
build() {
cd $_pkgname
NOCONFIGURE=1 ./autogen.sh
./configure \
--prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
--libexecdir=/usr/lib/$_pkgname \
--disable-static
make
}
package() {
cd $_pkgname
make DESTDIR="$pkgdir" install
}
|