summaryrefslogtreecommitdiffstats
path: root/main/upower/APKBUILD
blob: 945aabddeee8dd9a29afb76b11aa6103d6a08596 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=upower
pkgver=0.9.20
pkgrel=1
pkgdesc="Power Management Services"
url="http://upower.freedesktop.org"
arch="all"
license="GPL"
depends=""
subpackages="$pkgname-dev $pkgname-doc"
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
build() {
	cd "$srcdir/$pkgname-$pkgver"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--localstatedir=/var \
		--libexecdir=/usr/lib/upower \
		--disable-static \
		|| return 1
	make
}

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

md5sums="f175984d142dc8d2353a7da609836b69  upower-0.9.20.tar.xz"
sha256sums="6817237486561294b1004a9a50a01a4d69f17e8d708c6baf9d92104fe2e6e184  upower-0.9.20.tar.xz"
sha512sums="d78fc0f53a89e72753c6807ccec70209efa0660c9b93ecdf450c43d33a6f8e39e55ad790ce19c67d335ec137655cf701b09069dbfc68707a8ba6fdbda72fde72  upower-0.9.20.tar.xz"