summaryrefslogtreecommitdiff
path: root/testing/upower/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'testing/upower/PKGBUILD')
-rw-r--r--testing/upower/PKGBUILD34
1 files changed, 34 insertions, 0 deletions
diff --git a/testing/upower/PKGBUILD b/testing/upower/PKGBUILD
new file mode 100644
index 000000000..06cf88c0a
--- /dev/null
+++ b/testing/upower/PKGBUILD
@@ -0,0 +1,34 @@
+# $Id: PKGBUILD 162916 2012-07-03 23:39:56Z tomegun $
+# Maintainer: Jan de Groot <jgc@archlinux.org>
+
+pkgname=upower
+pkgver=0.9.17
+pkgrel=1
+pkgdesc="Abstraction for enumerating power devices, listening to device events and querying history and statistics"
+arch=('i686' 'x86_64')
+url="http://upower.freedesktop.org"
+license=('GPL')
+depends=('systemd-tools' 'libusb' 'polkit' 'pm-utils' 'dbus-glib' 'libimobiledevice')
+makedepends=('intltool' 'docbook-xsl' 'gobject-introspection')
+options=('!libtool')
+source=($url/releases/$pkgname-$pkgver.tar.xz)
+
+build() {
+ cd "$pkgname-$pkgver"
+
+ # put udev files in /usr/lib
+ sed -i "/slashlibdir=/s#/lib#/usr/lib#" configure
+
+ ./configure --prefix=/usr --sysconfdir=/etc \
+ --localstatedir=/var \
+ --libexecdir=/usr/lib/upower \
+ --with-systemdsystemunitdir=/usr/lib/systemd/system \
+ --disable-static
+ make
+}
+
+package() {
+ cd "$pkgname-$pkgver"
+ make DESTDIR="$pkgdir" install
+}
+md5sums=('9ef7fc8ec438542f014f3a34552822aa')