aboutsummaryrefslogtreecommitdiffstats
path: root/main/upower/APKBUILD
blob: f0f20c649c8b8e79b646b1f7916b57ad1317978d (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=upower
pkgver=0.9.23
pkgrel=1
pkgdesc="Power Management Services"
url="http://upower.freedesktop.org"
arch="all"
license="GPL2+"
depends=""
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
makedepends="gtk+-dev udev-dev libusbx-dev polkit-dev dbus-glib-dev libxslt
			docbook-xsl"
source="http://upower.freedesktop.org/releases/upower-$pkgver.tar.xz"

_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="39cfd97bfaf7d30908f20cf937a57634  upower-0.9.23.tar.xz"
sha256sums="433252b0a8e9ab4bed7e17ee3ee5b7cef6d527b1f5401ee32212d82a9682981b  upower-0.9.23.tar.xz"
sha512sums="526ef95e43faf61744ba2bbf80bae23bc5c8672130563a87a7f18f00d85b16e2069814ad70dd66ce6ce698037b522d78579cc2135e2af0c2a636230cfa662c6d  upower-0.9.23.tar.xz"