opt/upower/Pkgfile

31 lines
921 B
Plaintext
Raw Normal View History

2014-11-27 10:58:39 +01:00
# Description: Abstraction for enumerating power devices, listening to device events and querying history and statistics.
# URL: https://upower.freedesktop.org/
2014-11-27 10:58:39 +01:00
# Maintainer: Danny Rawlins, crux at romster dot me
2019-06-16 04:28:06 +02: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 10:58:39 +01:00
name=upower
2022-02-25 15:04:41 +01:00
version=0.99.16
release=2
source=(https://gitlab.freedesktop.org/upower/upower/-/archive/v$version/upower-v$version.tar.bz2)
2014-11-27 10:58:39 +01:00
build() {
2022-02-25 15:04:41 +01:00
prt-get isinst libxslt || PKGMK_UPOWER+=' -D man=false'
2014-11-27 10:58:39 +01:00
2022-02-25 15:04:41 +01:00
meson setup build $name-v$version $PKGMK_UPOWER \
2014-11-27 10:58:39 +01:00
--prefix=/usr \
--libexecdir=lib/upower \
2022-02-25 15:04:41 +01:00
--buildtype=plain \
--wrap-mode nodownload \
-D b_lto=true \
-D b_pie=true \
-D os_backend=dummy \
-D udevrulesdir=/lib/udev/rules.d \
-D systemdsystemunitdir=no \
-D gtk-doc=false
2022-02-25 15:04:41 +01:00
meson compile -C build -j ${JOBS:-1}
DESTDIR=$PKG meson install -C build
2014-11-27 10:58:39 +01:00
2022-02-25 15:04:41 +01:00
rm -rf $PKG/usr/share/locale
2014-11-27 10:58:39 +01:00
}