aboutsummaryrefslogtreecommitdiffstats
path: root/main/upower/APKBUILD
blob: b48f55f97a7658e0d69cf52a0278299b973034ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=upower
pkgver=0.99.4
pkgrel=0
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
}

md5sums="78800e1ac7f92b24aabdf433e38f75d2  upower-0.99.4.tar.xz
e2f1d7810337b9c7dd559bda4b88cfea  lib-Fix-memory-leak-in-up_client_get_devices.patch
48ab7a1f497b8628f0a836aa4e3bd1f1  linux-Fix-possible-double-free.patch"
sha256sums="9ca325a6ccef505529b268ebbbd9becd0ce65a65f6ac7ee31e2e5b17648037b0  upower-0.99.4.tar.xz
8c62939c1850f4c3b7ee32b5b79496155c03cd1371e7cad26ecfc1e0643f9851  lib-Fix-memory-leak-in-up_client_get_devices.patch
069e4407b775a28bbf987d145e0d0659dcae4b85e3b9a45a0a3aef0cee23f426  linux-Fix-possible-double-free.patch"
sha512sums="b3fdee5ccf5f4d0c69e227f543272f6952119132814e27bc8f112716b8d36b5e07741a87bcf02203e80ef910cad9ddffa1adecb338c9a9aaa5e1038b62be07f3  upower-0.99.4.tar.xz
d18e4c6119e32297f612fa110e01de342381f38c8be42d4fd5322eb17a2cb172c1cb8bf09e0a25e0ef6b76edb82b6748c9c8fd02f44341f51ecd09141ea432fd  lib-Fix-memory-leak-in-up_client_get_devices.patch
13656064551a9b9e40fe3560098319182e980d2ab48134959f9f642a6c42cb0283b3bd00052ef26834ffea5c3a2108b66fd127e165b2167a43064ccd4ba526b0  linux-Fix-possible-double-free.patch"