[arch-commits] Commit in upower/repos (testing-x86_64 testing-x86_64/PKGBUILD)

Antonio Rojas arojas at archlinux.org
Thu Jun 17 17:43:40 UTC 2021


    Date: Thursday, June 17, 2021 @ 17:43:40
  Author: arojas
Revision: 418398

archrelease: copy trunk to testing-x86_64

Added:
  upower/repos/testing-x86_64/
  upower/repos/testing-x86_64/PKGBUILD
    (from rev 418397, upower/trunk/PKGBUILD)

----------+
 PKGBUILD |   43 +++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 43 insertions(+)

Copied: upower/repos/testing-x86_64/PKGBUILD (from rev 418397, upower/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD	                        (rev 0)
+++ testing-x86_64/PKGBUILD	2021-06-17 17:43:40 UTC (rev 418398)
@@ -0,0 +1,43 @@
+# Maintainer: Jan de Groot <jgc at archlinux.org>
+
+pkgname=upower
+pkgver=0.99.12
+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 libusb libimobiledevice libgudev)
+makedepends=(docbook-xsl gobject-introspection python git gtk-doc)
+backup=(etc/UPower/UPower.conf)
+_commit=0f2837acded0bf82acedf5caafc81684e1919c89
+source=("git+https://gitlab.freedesktop.org/upower/upower.git#commit=$_commit")
+md5sums=('SKIP')
+
+pkgver() {
+  cd $pkgname
+  git describe --tags | sed -e 's/UPOWER_//' -e 's/_/\./g' -e 's/-/+/g'
+}
+
+prepare() {
+  cd $pkgname
+  sed -e 's|libplist >= 0.12|libplist-2.0 >= 2.2|' -i configure.ac # support libplist 2.2
+  NOCONFIGURE=1 ./autogen.sh
+}
+
+build() {
+  cd $pkgname
+  ./configure \
+    --prefix=/usr \
+    --sysconfdir=/etc \
+    --localstatedir=/var \
+    --libexecdir=/usr/lib \
+    --disable-static \
+    --enable-gtk-doc
+  make
+}
+
+package() {
+  cd $pkgname
+  make DESTDIR="$pkgdir" install
+}



More information about the arch-commits mailing list