# Maintainer: Natanael Copa pkgname=upower pkgver=0.99.3 pkgrel=1 pkgdesc="Power Management Services" url="http://upower.freedesktop.org" arch="all" license="GPL2+" depends="" subpackages="$pkgname-dev $pkgname-doc $pkgname-lang" makedepends="linux-headers gtk+-dev eudev-dev libusb-dev polkit-dev dbus-glib-dev libxslt docbook-xsl" source="http://upower.freedesktop.org/releases/upower-$pkgver.tar.xz lib-Fix-memory-leak-in-up_client_get_devices.patch linux-Fix-possible-double-free.patch " _builddir="$srcdir"/$pkgname-$pkgver prepare() { cd "$_builddir" } build() { cd "$srcdir/$pkgname-$pkgver" DATADIRNAME=share ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var \ --libexecdir=/usr/lib/upower \ --disable-static \ || return 1 make || return 1 } package() { cd "$_builddir" make DESTDIR="$pkgdir" install || return 1 rm -f "$pkgdir"/usr/lib/*.la } md5sums="a9c95d0545bc23d784642c11e157cfbf upower-0.99.3.tar.xz e2f1d7810337b9c7dd559bda4b88cfea lib-Fix-memory-leak-in-up_client_get_devices.patch 48ab7a1f497b8628f0a836aa4e3bd1f1 linux-Fix-possible-double-free.patch" sha256sums="697199bcc113bb069e6fb6bf4135536a702ba9847e46c5fc6df87d19624ddd38 upower-0.99.3.tar.xz 8c62939c1850f4c3b7ee32b5b79496155c03cd1371e7cad26ecfc1e0643f9851 lib-Fix-memory-leak-in-up_client_get_devices.patch 069e4407b775a28bbf987d145e0d0659dcae4b85e3b9a45a0a3aef0cee23f426 linux-Fix-possible-double-free.patch" sha512sums="665b5b03605910b3a2d3f32e4846c2b2ab4c91ba91c55dde8c5b8ab3856f3d6fea5efac20fdb608050b57979ed344ef630c76acc0b3f858e8c5168f6adeb2d64 upower-0.99.3.tar.xz d18e4c6119e32297f612fa110e01de342381f38c8be42d4fd5322eb17a2cb172c1cb8bf09e0a25e0ef6b76edb82b6748c9c8fd02f44341f51ecd09141ea432fd lib-Fix-memory-leak-in-up_client_get_devices.patch 13656064551a9b9e40fe3560098319182e980d2ab48134959f9f642a6c42cb0283b3bd00052ef26834ffea5c3a2108b66fd127e165b2167a43064ccd4ba526b0 linux-Fix-possible-double-free.patch"