Skip to content
Snippets Groups Projects
Verified Commit 5e629fe8 authored by Caleb Connolly's avatar Caleb Connolly :recycle: Committed by Clayton Craft
Browse files

systemd/upower: new aport


Integrates with systemd.

Signed-off-by: default avatarCaleb Connolly <caleb@postmarketos.org>
parent a60d8f4c
No related branches found
No related tags found
No related merge requests found
# Forked from Alpine INSERT-REASON-HERE (CHANGEME!)
pkgname=upower
pkgver=9999
_pkgver=1.90.2
pkgrel=2
pkgdesc="Power Management Services"
url="https://upower.freedesktop.org"
arch="all"
license="GPL-2.0-or-later"
makedepends="
docbook-xsl
glib-dev
gobject-introspection-dev
gtk-doc
libgudev-dev
libxslt
meson
udev-dev
"
checkdepends="
dbus
py3-dbus
py3-dbusmock
py3-gobject3
py3-packaging
umockdev-dev
"
subpackages="$pkgname-dev $pkgname-lang $pkgname-doc $pkgname-service"
source="https://gitlab.freedesktop.org/upower/upower/-/archive/v$_pkgver/upower-v$_pkgver.tar.bz2
"
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 \
-Db_lto=true \
-Dudevhwdbdir=/usr/lib/udev/hwdb.d/ \
-Dudevrulesdir=/usr/lib/udev/rules.d \
-Dsystemdsystemunitdir=/usr/lib/systemd/system \
. 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="
9cdaea76d604e79bb385c2d7d8df26ab74d8fbbd5ddd271d7dc3323ae4f98ce9504ce807638e008869fdec0e1fcaf8d4be53e486714913616b8df73d8e4ac396 upower-v1.90.2.tar.bz2
"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment