2014-11-27 20:58:39 +11:00
|
|
|
# Description: Abstraction for enumerating power devices, listening to device events and querying history and statistics.
|
|
|
|
# URL: http://upower.freedesktop.org/
|
|
|
|
# Maintainer: Danny Rawlins, crux at romster dot me
|
|
|
|
# Packager: Alan Mizrahi, alan at mizrahi dot com dot ve
|
2016-06-20 08:50:43 +10:00
|
|
|
# Depends on: dbus-glib gobject-introspection intltool libgudev libusb
|
2014-11-27 20:58:39 +11:00
|
|
|
|
|
|
|
name=upower
|
2016-06-20 08:50:43 +10:00
|
|
|
version=0.99.4
|
2014-11-27 20:58:39 +11:00
|
|
|
release=1
|
2016-06-20 08:50:43 +10:00
|
|
|
source=(http://$name.freedesktop.org/releases/$name-$version.tar.xz
|
|
|
|
fix-critical-action.patch)
|
2014-11-27 20:58:39 +11:00
|
|
|
|
|
|
|
build() {
|
|
|
|
cd $name-$version
|
|
|
|
|
2016-06-20 08:50:43 +10:00
|
|
|
patch -p 1 -i $SRC/fix-critical-action.patch
|
|
|
|
|
2014-11-27 20:58:39 +11:00
|
|
|
./configure \
|
|
|
|
--prefix=/usr \
|
|
|
|
--sysconfdir=/usr/etc \
|
|
|
|
--localstatedir=/var \
|
|
|
|
--libexecdir=/usr/lib/$name \
|
2014-11-30 00:43:48 +11:00
|
|
|
--disable-nls \
|
|
|
|
--disable-man-pages
|
2014-11-27 20:58:39 +11:00
|
|
|
|
|
|
|
make
|
|
|
|
make DESTDIR=$PKG install
|
|
|
|
}
|