jobextra/upower/PKGBUILD-arch

66 lines
1.3 KiB
Plaintext
Raw Normal View History

2022-09-08 12:53:51 +02:00
# Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
# Contributor: Jan de Groot <jgc@archlinux.org>
pkgname=upower
pkgver=1.90.0
pkgrel=3
2022-09-08 12:53:51 +02:00
pkgdesc="Abstraction for enumerating power devices, listening to device events and querying history and statistics"
url="https://upower.freedesktop.org"
arch=(x86_64)
license=(GPL)
2023-02-03 01:24:50 +01:00
depends=(
libgudev
libimobiledevice
systemd
usbmuxd
2023-02-03 01:24:50 +01:00
)
makedepends=(
docbook-xsl
git
gobject-introspection
gtk-doc
meson
python
)
checkdepends=(
python-dbus
python-dbusmock
python-gobject
python-packaging
umockdev
)
2022-09-08 12:53:51 +02:00
backup=(etc/UPower/UPower.conf)
_commit=d4259c009b3ca1169dfd19231a040c233fc3b58d # tags/v1.90.0^0
source=("git+https://gitlab.freedesktop.org/upower/upower.git#commit=$_commit")
2023-02-03 01:24:50 +01:00
b2sums=('SKIP')
2022-09-08 12:53:51 +02:00
pkgver() {
cd upower
git describe --tags | sed -e 's/^v\|^UPOWER_//;s/_/\./g;s/[^-]*-g/r&/;s/-/+/g'
}
prepare() {
cd upower
2023-02-03 01:24:50 +01:00
# Fix use of libimobiledevice
git cherry-pick -n 81a89385a45d3de1028bcd86b3688fb465b4035c
2022-09-08 12:53:51 +02:00
}
build() {
arch-meson upower build
meson compile -C build
}
check() {
meson test -C build --print-errorlogs
}
package() {
depends+=(libg{lib,object,io}-2.0.so)
provides+=(libupower-glib.so)
meson install -C build --destdir "$pkgdir"
}
2023-02-03 01:24:50 +01:00
# vim:set sw=2 sts=-1 et: