blob: 7855717f09f2befe4b917541e477ca07ec316f8f (
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
|
# Contributor: Jan de Groot <jgc@archlinux.org>
# Contributor: Star Brilliant <m13253@hotmail.com>
pkgname=upower-nocritical
_pkgname=upower
pkgver=1.90.4
pkgrel=2
provides=(upower)
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-2.0-or-later)
depends=(
gcc-libs
glib2
glib2-devel
glibc
libgudev
libimobiledevice
libplist
)
optdepends=(
'usbmuxd: Read charge status of iOS devices'
)
makedepends=(
docbook-xsl
git
gobject-introspection
gtk-doc
meson
python
systemd
usbmuxd
)
checkdepends=(
python-dbus
python-dbusmock
python-gobject
python-packaging
umockdev
)
conflicts=('upower')
backup=('etc/UPower/UPower.conf')
_tag=v${pkgver}
source=("git+https://gitlab.freedesktop.org/upower/upower.git#tag=$_tag"
0001-Add-a-critical-action-Ignore.patch)
md5sums=('SKIP'
'1be98d9fc7f2db0cf08e1209474e98a3')
pkgver() {
cd $_pkgname
git describe --tags | sed -e 's/^v\|^UPOWER_//;s/_/\./g;s/[^-]*-g/r&/;s/-/+/g'
}
prepare() {
cd $_pkgname
patch -p1 < "$srcdir/0001-Add-a-critical-action-Ignore.patch"
}
build() {
arch-meson upower build
meson compile -C build
}
check() {
meson test -C build --print-errorlogs
}
package() {
depends+=(libg{lib,object,io}-2.0.so)
provides+=(libupower-glib.so)
meson install -C build --destdir "$pkgdir"
}
|