void-packages/srcpkgs/gnome-settings-daemon/template

38 lines
1.3 KiB
Bash

# Template file for 'gnome-settings-daemon'
pkgname=gnome-settings-daemon
version=3.28.1
revision=1
build_style=meson
hostmakedepends="docbook-xsl glib-devel intltool itstool libxslt pkg-config"
makedepends="NetworkManager-devel alsa-lib-devel geoclue2-devel
gnome-desktop-devel ibus-devel libcanberra-devel libgnomekbd-devel
libgweather-devel libnotify-devel librsvg-devel libwacom-devel nss-devel
polkit-devel pulseaudio-devel startup-notification-devel upower-devel
xf86-input-wacom-devel"
depends="hicolor-icon-theme pulseaudio"
short_desc="GNOME settings daemon"
maintainer="Enno Boland <gottox@voidlinux.eu>"
license="GPL-3.0-or-later"
homepage="https://www.gnome.org"
distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
checksum=594f78e194eb42a6f77785d1a92a4cb9cda54b8c3af6ca0c315b4570d38d2d7d
if [ "$CROSS_BUILD" ]; then
hostmakedepends+=" polkit"
pre_configure() {
# The power plugin requires compilating gsd-power-enums-update
# and running it, which is impossible when cross-compiling, so
# we disable it on the meson.build
sed -i "/\['power', 'Power'\],/d" plugins/meson.build
}
fi
gnome-settings-daemon-devel_package() {
depends="libglib-devel"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
}
}