2020-10-22 09:54:33 +00:00
|
|
|
# Forked from Alpine to apply Purism's torch patch
|
|
|
|
|
|
|
|
pkgname=upower
|
|
|
|
pkgver=9999
|
|
|
|
_pkgver=0.99.11
|
|
|
|
_distver="UPOWER_${_pkgver//./_}"
|
2021-08-11 17:11:25 +00:00
|
|
|
pkgrel=4
|
2020-10-22 09:54:33 +00:00
|
|
|
pkgdesc="Power Management Services"
|
|
|
|
url="https://upower.freedesktop.org"
|
|
|
|
arch="aarch64 armv7"
|
|
|
|
license="GPL-2.0-or-later"
|
|
|
|
subpackages="$pkgname-dev $pkgname-lang"
|
2021-08-11 17:11:25 +00:00
|
|
|
makedepends="linux-headers gtk+-dev libgudev-dev libusb-dev polkit-elogind-dev gtk-doc
|
2020-10-22 09:54:33 +00:00
|
|
|
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
|
2021-08-11 17:11:25 +00:00
|
|
|
0001-Detect-USB-Type-C-port-controller-and-other-chargers.patch
|
|
|
|
0002-daemon-Sync-icon-and-warning-for-non-default-low-level.patch
|
2020-10-22 09:54:33 +00:00
|
|
|
"
|
|
|
|
builddir="$srcdir/$pkgname-$_distver"
|
|
|
|
|
|
|
|
prepare() {
|
|
|
|
default_prepare
|
|
|
|
NOCONFIGURE=1 ./autogen.sh
|
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
# pmOS workarounds for qemu hanging:
|
|
|
|
# --disable-dependency-tracking
|
|
|
|
# --disable-man-pages
|
|
|
|
# --disable-tests
|
|
|
|
# -j1
|
|
|
|
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 \
|
|
|
|
--disable-dependency-tracking \
|
|
|
|
--disable-man-pages \
|
|
|
|
--disable-tests
|
|
|
|
make -j1
|
|
|
|
}
|
|
|
|
|
|
|
|
check() {
|
|
|
|
make check
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
make DESTDIR="$pkgdir" install
|
|
|
|
}
|
|
|
|
|
2021-06-16 23:36:24 +00:00
|
|
|
sha512sums="
|
|
|
|
918fdba13df7ba85fd276daae68228554e71df95011b48dc42b006a059cf2996f906ce08e98f6d1da07c8f2a4235bc9622992fa42eaaf05a08f1a3650f4ae4b6 upower-UPOWER_0_99_11.tar.bz2
|
2021-08-11 17:11:25 +00:00
|
|
|
0673d32e8c3d313e21437e7d431068b4a0c51a4d63acf414fc93430c461ab5acbcc2ae8740d6614ed9487fadb8ae2c685e02fb7ad3623b71a20ccb90c1a0bd28 0001-Detect-USB-Type-C-port-controller-and-other-chargers.patch
|
|
|
|
77d8ab65118a3e776522665cdb66b7653eb0f9c6db2c82ddac0bf7ef0b25a262a054f38ccc403da3321209081b09ddfdc053fcf432b2e43a14e965aa60ae5c12 0002-daemon-Sync-icon-and-warning-for-non-default-low-level.patch
|
2021-06-16 23:36:24 +00:00
|
|
|
"
|