- packaging/upower-souveraine submodule pinned at fork head (f18b1a4,
souveraine/charge-type): ChargeType + PercentageTrusted on Device
- PKGBUILD.upower.prebuilt: prebuilt meson install tree, provides/
conflicts upower, replaces stock (IgnorePkg=upower on the phone)
- ci.yml: build the fork per-arch against the aarch64 sysroot, assert
binary arch, fold into the souveraine-{arch} pacman db
- LockSurfaceHost: charge line driven by device state, not onBattery —
no more eternal 'Charging N%' on a topped-off pack
- docs/tasks/power-indication.md force-added past the docs/ gitignore
35 lines
1.7 KiB
Text
35 lines
1.7 KiB
Text
# CI package recipe for the Souveraine UPower fork.
|
|
#
|
|
# The archdev runner builds upower-souveraine natively per arch (meson +
|
|
# ninja), then makepkg assembles this package from the prebuilt tree. The
|
|
# package is folded into the same souveraine-{arch} pacman database as the
|
|
# souveraine agent substrate, so the phone installs it from the same edge
|
|
# release archive it already consumes.
|
|
#
|
|
# Provides/conflicts upower so installing this package replaces the stock
|
|
# distro upower. /etc/pacman.conf must list `upower` under IgnorePkg so a
|
|
# later stock upower from the distro can't clobber the fork. (IgnorePkg only
|
|
# skips automatic upgrades; an explicit -S upower-souveraine still wins.)
|
|
pkgname=upower-souveraine
|
|
pkgver="${SOUVERAINE_PKGVER:?CI must set SOUVERAINE_PKGVER}"
|
|
pkgrel=1
|
|
pkgdesc="UPower fork (Souveraine) — exposes ChargeType and PercentageTrusted over D-Bus"
|
|
arch=("${SOUVERAINE_PKGARCH:?CI must set SOUVERAINE_PKGARCH}")
|
|
url="https://gitea.wiuf.net/Fimeg/upower"
|
|
license=('GPL-2.0-or-later')
|
|
provides=("upower=1.91.3" 'libupower-glib.so=3-64')
|
|
conflicts=('upower')
|
|
depends=('glib2' 'glibc' 'libgcc' 'libgudev' 'libimobiledevice' 'libplist' 'polkit')
|
|
options=('!strip' '!libtool')
|
|
# Prebuilt install tree produced by `meson install --destdir` in CI, plus the
|
|
# introspection XML (so quickshell's UPower module can introspect the new
|
|
# ChargeType/PercentageTrusted properties).
|
|
source=('upower-tree.tar' 'org.freedesktop.UPower.Device.xml')
|
|
sha256sums=('SKIP' 'SKIP')
|
|
|
|
package() {
|
|
bsdtar -xf "$srcdir/upower-tree.tar" -C "$pkgdir"
|
|
# Keep the canonical interface XML discoverable for introspection.
|
|
install -Dm644 "$srcdir/org.freedesktop.UPower.Device.xml" \
|
|
"$pkgdir/usr/share/dbus-1/interfaces/org.freedesktop.UPower.Device.xml"
|
|
}
|