2014-11-27 20:58:39 +11:00
|
|
|
# Description: Abstraction for enumerating power devices, listening to device events and querying history and statistics.
|
2020-06-21 20:21:42 +10:00
|
|
|
# URL: https://upower.freedesktop.org/
|
2023-07-09 09:59:03 +02:00
|
|
|
# Maintainer: Tim Biermann, tbier at posteo dot de
|
2019-06-16 12:28:06 +10:00
|
|
|
# Depends on: dbus-glib intltool libgudev libusb
|
2022-02-25 15:04:41 +01:00
|
|
|
# Optional: gobject-introspection gtk-doc libxslt
|
2014-11-27 20:58:39 +11:00
|
|
|
|
|
|
|
name=upower
|
2023-07-07 19:00:02 +02:00
|
|
|
version=1.90.2
|
2022-05-31 22:04:35 +02:00
|
|
|
release=1
|
2022-03-01 09:55:57 +01:00
|
|
|
source=(https://gitlab.freedesktop.org/upower/upower/-/archive/v$version/upower-v$version.tar.bz2)
|
2014-11-27 20:58:39 +11:00
|
|
|
|
|
|
|
build() {
|
2023-07-09 09:59:03 +02:00
|
|
|
prt-get isinst libxslt || PKGMK_UPOWER+=' -D man=false'
|
2014-11-27 20:58:39 +11:00
|
|
|
|
2023-07-09 09:59:03 +02:00
|
|
|
meson setup build $name-v$version $PKGMK_UPOWER \
|
|
|
|
--prefix=/usr \
|
|
|
|
--libexecdir=lib/upower \
|
|
|
|
--buildtype=plain \
|
|
|
|
--wrap-mode nodownload \
|
|
|
|
-D b_lto=false \
|
|
|
|
-D b_pie=true \
|
|
|
|
-D os_backend=dummy \
|
|
|
|
-D udevrulesdir=/lib/udev/rules.d \
|
|
|
|
-D udevhwdbdir=/lib/udev/hwdb.d/ \
|
|
|
|
-D udevrulesdir=/lib/udev/rules.d \
|
|
|
|
-D systemdsystemunitdir=no \
|
|
|
|
-D gtk-doc=false
|
|
|
|
meson compile -C build -j ${JOBS:-1}
|
|
|
|
DESTDIR=$PKG meson install -C build
|
2014-11-27 20:58:39 +11:00
|
|
|
|
2023-07-09 09:59:03 +02:00
|
|
|
rm -rf $PKG/usr/share/locale
|
2014-11-27 20:58:39 +11:00
|
|
|
}
|