aboutsummaryrefslogtreecommitdiffstats
path: root/main/upower/APKBUILD
blob: 581d7e8c844f241c685ce2cee342e121fc047d23 (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
51
52
53
54
55
56
57
58
59
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=upower
pkgver=0.99.4
pkgrel=2
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 libgudev-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

	daemon-fix-get_critical_action.patch
	lib-add-propererror-and-cancellable-handling-to-UpClient.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
15ae9162959c6221c6d8c72c486e1299  daemon-fix-get_critical_action.patch
09a93187fd2ff4f4c8e69c7bef73bb4e  lib-add-propererror-and-cancellable-handling-to-UpClient.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
30c9e7587bd63f75d50f50f93bf97d9a80fc76f5ce875080487de04b2538beb4  daemon-fix-get_critical_action.patch
3b6c8b324bf8dcf9da0bad833f27d4c040c4d9acdc3aa261f0a0c9da2258a7bc  lib-add-propererror-and-cancellable-handling-to-UpClient.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
9f2718c7fb7ea77d07fe463d3eecae14e40cc2da71c500e2d747c52bbe2f645632cd7ee8289a7f1b8b252b3eb9d5d568ddcd74e00e5fd9985861514895847006  daemon-fix-get_critical_action.patch
678298e420ce0eb8f9ca65ca0806b856b4d7f3634a70a029dcb9a391a457dcb91b2a5c8bbe7f3054e45a36f33458daedb10e6be11e970bd818ecf42e3587a76e  lib-add-propererror-and-cancellable-handling-to-UpClient.patch"