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

                                          

                                                     

                                                                          
                                                                                                                   
 








                                              

                                                     












                                      
                                                                                                                                                                   
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=upower
pkgver=0.99.9
pkgrel=0
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://gitlab.freedesktop.org/upower/upower/uploads/2282c7c0e53fb31816b824c9d1f547e8/upower-0.99.9.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="45eb587b0e5ffcce88bad8c56bc5efa30559748913016a55d58313280f5159378e5fbb4a9842c3a6409257bb97822d235f96b03704268b8471455c93eb05fe2f  upower-0.99.9.tar.xz"