[arch-commits] Commit in upower/repos (testing-x86_64 testing-x86_64/PKGBUILD)
Jan Steffens
heftig at gemini.archlinux.org
Wed Sep 7 18:13:43 UTC 2022
Date: Wednesday, September 7, 2022 @ 18:13:42
Author: heftig
Revision: 455240
archrelease: copy trunk to testing-x86_64
Added:
upower/repos/testing-x86_64/
upower/repos/testing-x86_64/PKGBUILD
(from rev 455239, upower/trunk/PKGBUILD)
----------+
PKGBUILD | 43 +++++++++++++++++++++++++++++++++++++++++++
1 file changed, 43 insertions(+)
Copied: upower/repos/testing-x86_64/PKGBUILD (from rev 455239, upower/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD (rev 0)
+++ testing-x86_64/PKGBUILD 2022-09-07 18:13:42 UTC (rev 455240)
@@ -0,0 +1,43 @@
+# Maintainer: Jan Alexander Steffens (heftig) <heftig at archlinux.org>
+# Contributor: Jan de Groot <jgc at archlinux.org>
+
+pkgname=upower
+pkgver=1.90.0
+pkgrel=1
+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)
+depends=(systemd libimobiledevice libgudev)
+makedepends=(docbook-xsl gobject-introspection python git gtk-doc meson)
+checkdepends=(python-{dbus,dbusmock,gobject} umockdev)
+backup=(etc/UPower/UPower.conf)
+options=(debug)
+_commit=d4259c009b3ca1169dfd19231a040c233fc3b58d # tags/v1.90.0^0
+source=("git+https://gitlab.freedesktop.org/upower/upower.git#commit=$_commit")
+sha256sums=('SKIP')
+
+pkgver() {
+ cd upower
+ git describe --tags | sed -e 's/^v\|^UPOWER_//;s/_/\./g;s/[^-]*-g/r&/;s/-/+/g'
+}
+
+prepare() {
+ cd upower
+}
+
+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"
+}
More information about the arch-commits
mailing list