pmaports/temp/upower/APKBUILD
Clayton Craft f9769f26fd
temp/upower: fork from Alpine, downgrade to 0.99.20 (MR 3408)
A lame workaround for this[1] until something better comes along. Not
having a functional battery gauge on a mobile device is kind of painful.

1. pmaports issue 1677

Co-Authored-By: Oliver Smith <ollieparanoid@postmarketos.org>
Tested-by: Drew DeVault <sir@cmpwn.com>

[ci:skip-build] already built successfully in CI
2022-09-06 16:36:53 -07:00

51 lines
1.1 KiB
Text

# forked from Alpine Linux to work around: https://gitlab.com/postmarketOS/pmaports/-/issues/1677
pkgname=upower
pkgver=9999
_pkgver=0.99.20
pkgrel=0
pkgdesc="Power Management Services"
url="https://upower.freedesktop.org"
arch="all"
license="GPL-2.0-or-later"
makedepends="
eudev-dev
glib-dev
gobject-introspection-dev
libgudev-dev
libxslt
meson
"
checkdepends="
dbus
py3-dbus
py3-dbusmock
py3-gobject3
py3-packaging
umockdev-dev
"
subpackages="$pkgname-dev $pkgname-lang $pkgname-doc"
source="https://gitlab.freedesktop.org/upower/upower/-/archive/v$_pkgver/upower-v$_pkgver.tar.bz2"
builddir="$srcdir/$pkgname-v$_pkgver"
options="!check"
build() {
abuild-meson \
-Dudevhwdbdir=/lib/udev/hwdb.d/ \
-Dudevrulesdir=/lib/udev/rules.d \
-Dsystemdsystemunitdir=no \
-Dgtk-doc=false \
. output
meson compile ${JOBS:+-j ${JOBS}} -C output
}
check() {
meson test --no-rebuild -v -C output
}
package() {
DESTDIR="$pkgdir" meson install --no-rebuild -C output
}
sha512sums="
50e5b03f1319da3869b0caba4fbe78c8eabf1df6f783f1463b06394bee58bae42ad411780faa503965c5fdb983d723c0b5ae0731fae4220997a17875f4850b1e upower-v0.99.20.tar.bz2
"