[arch-commits] Commit in upower/trunk (PKGBUILD)
Jan Steffens
heftig at gemini.archlinux.org
Sat Feb 5 02:23:58 UTC 2022
Date: Saturday, February 5, 2022 @ 02:23:58
Author: heftig
Revision: 436227
0.99.14-1
Modified:
upower/trunk/PKGBUILD
----------+
PKGBUILD | 37 ++++++++++++++++++-------------------
1 file changed, 18 insertions(+), 19 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2022-02-04 23:40:05 UTC (rev 436226)
+++ PKGBUILD 2022-02-05 02:23:58 UTC (rev 436227)
@@ -2,7 +2,7 @@
# Maintainer: Jan de Groot <jgc at archlinux.org>
pkgname=upower
-pkgver=0.99.13
+pkgver=0.99.14
pkgrel=1
pkgdesc="Abstraction for enumerating power devices, listening to device events and querying history and statistics"
url="https://upower.freedesktop.org"
@@ -9,35 +9,34 @@
arch=(x86_64)
license=(GPL)
depends=(systemd libimobiledevice libgudev)
-makedepends=(docbook-xsl gobject-introspection python git gtk-doc)
+makedepends=(docbook-xsl gobject-introspection python git gtk-doc meson)
+checkdepends=(python-{dbus,dbusmock,gobject} umockdev)
backup=(etc/UPower/UPower.conf)
-_commit=0f6cc0a10be22d7ddd684e1cd851e4364a440494 # tags/UPOWER_0_99_13^0
+_commit=ab9520a7aad3795be7975e021577093a6e85946c # tags/v0.99.14^0
source=("git+https://gitlab.freedesktop.org/upower/upower.git#commit=$_commit")
-md5sums=('SKIP')
+sha256sums=('SKIP')
pkgver() {
- cd $pkgname
- git describe --tags | sed -e 's/UPOWER_//' -e 's/_/\./g' -e 's/-/+/g'
+ cd upower
+ git describe --tags | sed -e 's/^v\|^UPOWER_//;s/_/\./g;s/[^-]*-g/r&/;s/-/+/g'
}
prepare() {
- cd $pkgname
- NOCONFIGURE=1 ./autogen.sh
+ cd upower
}
build() {
- cd $pkgname
- ./configure \
- --prefix=/usr \
- --sysconfdir=/etc \
- --localstatedir=/var \
- --libexecdir=/usr/lib \
- --disable-static \
- --enable-gtk-doc
- make
+ arch-meson upower build -D udevrulesdir=/usr/lib/udev/rules.d
+ meson compile -C build
}
+check() {
+ meson test -C build --print-errorlogs
+}
+
package() {
- cd $pkgname
- make DESTDIR="$pkgdir" install
+ 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