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
This commit is contained in:
parent
13ec74abfb
commit
f9769f26fd
1 changed files with 51 additions and 0 deletions
51
temp/upower/APKBUILD
Normal file
51
temp/upower/APKBUILD
Normal file
|
@ -0,0 +1,51 @@
|
||||||
|
# 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
|
||||||
|
"
|
Loading…
Reference in a new issue