Files
pmaports-rtwo/extra-repos/systemd/upower/APKBUILD
T
Aster Boese 7429bed2ca */*: bump pkgrels of packages with systemd subpackages
Update to use the new version of the abuild systemd split function.

Signed-off-by: Aster Boese <asterboese@mailbox.org>
Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6713
2025-07-27 17:03:09 -04:00

68 lines
1.6 KiB
Bash

# Forked from Alpine for systemd support
pkgname=upower
_pkgver=1.90.9
pkgver=9999$_pkgver
pkgrel=1
pkgdesc="Power Management Services"
url="https://upower.freedesktop.org"
# armhf: pmb#2618
arch="all !armhf"
license="GPL-2.0-or-later"
makedepends="
docbook-xsl
glib-dev
gobject-introspection-dev
gtk-doc
libgudev-dev
libxslt
meson
udev-dev
polkit-dev
"
checkdepends="
dbus
py3-dbus
py3-dbusmock
py3-gobject3
py3-packaging
umockdev-dev
"
subpackages="$pkgname-dev $pkgname-lang $pkgname-doc $pkgname-systemd $pkgname-zsh-completion"
source="https://gitlab.freedesktop.org/upower/upower/-/archive/v$_pkgver/upower-v$_pkgver.tar.bz2
0001-fix-self-test-sleep-duration.patch
"
builddir="$srcdir/$pkgname-v$_pkgver"
options="$options !check !pmb:crossdirect" # failure on systemd, ignoring
case "$CARCH" in
x86)
# one test with 40.0 != 40.00000000
options="$options !check"
;;
esac
build() {
abuild-meson \
-Dudevhwdbdir=/usr/lib/udev/hwdb.d/ \
-Dudevrulesdir=/usr/lib/udev/rules.d \
-Dsystemdsystemunitdir=/usr/lib/systemd/system \
-Dman=true \
. output
meson compile -C output
}
check() {
meson test -t 5 --no-rebuild --print-errorlogs -C output
}
package() {
DESTDIR="$pkgdir" meson install --no-rebuild -C output
}
sha512sums="
7308e03125a5a888242253f9260f68283f5b53677c08dbc4d7e4d48cc6f600f50f8ab161d100f152138208d5119acddc90f0f19742aa8cca58e3a0ec54975110 upower-v1.90.9.tar.bz2
1b582f31660b82444682b6786913a6eb4e8e13c8370205b31da1bf9328e0d2e62c2596bfb4e82faf25e658f379ddb92d7f3f97ec8ddfdb512339d4d3d663f708 0001-fix-self-test-sleep-duration.patch
"