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

Antonio Rojas arojas at archlinux.org
Wed Jun 17 08:40:01 UTC 2020


    Date: Wednesday, June 17, 2020 @ 08:39:54
  Author: arojas
Revision: 389417

archrelease: copy trunk to staging-x86_64

Added:
  upower/repos/staging-x86_64/
  upower/repos/staging-x86_64/PKGBUILD
    (from rev 389416, upower/trunk/PKGBUILD)

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

Copied: upower/repos/staging-x86_64/PKGBUILD (from rev 389416, upower/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD	                        (rev 0)
+++ staging-x86_64/PKGBUILD	2020-06-17 08:39:54 UTC (rev 389417)
@@ -0,0 +1,43 @@
+# Maintainer: Jan de Groot <jgc at archlinux.org>
+
+pkgname=upower
+pkgver=0.99.11
+pkgrel=3
+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=e1548bba61206a05bbc318b3d49ae24571755ac6  # tags/UPOWER_0_99_11^0
+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