APKBUILD 786 Bytes
Newer Older
Natanael Copa's avatar
Natanael Copa committed
1 2
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=upower
Natanael Copa's avatar
Natanael Copa committed
3
pkgver=0.9.11
4
pkgrel=1
Natanael Copa's avatar
Natanael Copa committed
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
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.bz2"

_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
29
	rm -f "$pkgdir"/usr/lib/*.la
Natanael Copa's avatar
Natanael Copa committed
30 31
}

Natanael Copa's avatar
Natanael Copa committed
32
md5sums="7782a4c5a53021cdfb0703b7ba96edf5  upower-0.9.11.tar.bz2"