summaryrefslogblamecommitdiff
path: root/user/upower/APKBUILD
blob: b31a4a8e47aeab3b3c05ffbead84efd877600464 (plain) (tree)
1
2
3
4
5
6
7
8
9
                                                 
              
             
        
                                   
                                    
          

                                          

                                                     


                                                                          
 








                                              

                                                     












                                      
                                                                                                                                                                   
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=upower
pkgver=0.99.7
pkgrel=1
pkgdesc="Power Management Services"
url="https://upower.freedesktop.org"
arch="all"
options="!check"  # Requires running dbus.
license="GPL-2.0+"
depends=""
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
makedepends="dbus-glib-dev docbook-xsl gobject-introspection-dev gtk+-dev
	intltool libgudev-dev libusb-dev libxslt linux-headers polkit-dev"
source="https://upower.freedesktop.org/releases/upower-$pkgver.tar.xz"

build() {
	cd "$builddir"
	DATADIRNAME=share ./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--localstatedir=/var \
		--libexecdir=/usr/lib/upower \
		--disable-static \
		--with-udevrulesdir=/lib/udev/rules.d
	make
}

check() {
	cd "$builddir"
	make check
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
}

sha512sums="a1ad200e715284eae815580bba3faad480f7f13401f6ff1a2e7446172796a2413990ce2b553de713ddc530849b2dff1f0ddc12fbd2fd9b55510bbb644d2340a4  upower-0.99.7.tar.xz"