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

_builddir="$srcdir"/$pkgname-$pkgver
build() {
	cd "$srcdir/$pkgname-$pkgver"
	./configure --prefix=/usr \
		--sysconfdir=/etc \
		--localstatedir=/var \
		--libexecdir=/usr/lib/upower \
		--disable-static
	make
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	rm -f "$pkgdir"/usr/lib/*.la
}

md5sums="bfaaa1e7f8479fca5594406b3c36dff9  upower-0.9.18.tar.xz"