blob: 6c4947446275bc2001abe90e6869b1d304820c15 (
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
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=upower
pkgver=0.99.13
_distver="UPOWER_${pkgver//./_}"
pkgrel=0
pkgdesc="Power Management Services"
url="https://upower.freedesktop.org"
# mips64, s390x and riscv64 blocked by polkit
arch="all !mips64 !s390x !riscv64"
license="GPL-2.0-or-later"
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
makedepends="linux-headers libgudev-dev libusb-dev polkit-dev gtk-doc
dbus-glib-dev libxslt gobject-introspection-dev docbook-xsl autoconf automake"
checkdepends="py3-dbus py3-gobject3"
options="!check" # need unpackaged umockdev
source="https://gitlab.freedesktop.org/upower/upower/-/archive/$_distver/upower-$_distver.tar.bz2"
builddir="$srcdir/$pkgname-$_distver"
prepare() {
default_prepare
NOCONFIGURE=1 ./autogen.sh
}
build() {
DATADIRNAME=share ./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
--libexecdir=/usr/lib/upower \
--disable-static \
--with-udevrulesdir=/lib/udev/rules.d
make
}
check() {
make check
}
package() {
make DESTDIR="$pkgdir" install
}
sha512sums="
711bd2868d5a7509f2eecffaf58ecfb061534c4356e9821d4f23a810cdb02d1d7ef68c0c0282013cb7b283a55bd782ed0f89c43deba438d769bc1be5d15184a0 upower-UPOWER_0_99_13.tar.bz2
"
|