[arch-commits] Commit in upower/repos (staging-x86_64 staging-x86_64/PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Tue May 19 08:21:28 UTC 2020
Date: Tuesday, May 19, 2020 @ 08:21:28
Author: felixonmars
Revision: 386255
archrelease: copy trunk to staging-x86_64
Added:
upower/repos/staging-x86_64/
upower/repos/staging-x86_64/PKGBUILD
(from rev 386252, upower/trunk/PKGBUILD)
----------+
PKGBUILD | 42 ++++++++++++++++++++++++++++++++++++++++++
1 file changed, 42 insertions(+)
Copied: upower/repos/staging-x86_64/PKGBUILD (from rev 386252, upower/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD (rev 0)
+++ staging-x86_64/PKGBUILD 2020-05-19 08:21:28 UTC (rev 386255)
@@ -0,0 +1,42 @@
+# Maintainer: Jan de Groot <jgc at archlinux.org>
+
+pkgname=upower
+pkgver=0.99.11
+pkgrel=2
+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
+ 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