# Template file for 'caffeine-ng'
pkgname=caffeine-ng
version=4.3.2
revision=1
build_style=meson
_python_dependencies="python3-click python3-dbus python3-ewmh
 python3-gobject python3-pulsectl python3-setproctitle"
hostmakedepends="pkg-config scdoc gettext ${_python_dependencies}"
makedepends="python3-gobject-devel python3-dbus-devel gtk+3-devel
 libnotify-devel libayatana-appindicator-devel pulseaudio-devel
 $(vopt_if xfconf xfconf-devel)"
depends="libayatana-appindicator libnotify gtk+3 xdg-utils
 desktop-file-utils hicolor-icon-theme ${_python_dependencies}
 $(vopt_if xfconf xfconf)"
short_desc="Temporarily inhibits the screensaver and sleep mode"
maintainer="Naz <ndpm13@ch-naeseem.com>"
license="GPL-3.0-or-later"
homepage="https://codeberg.org/WhyNotHugo/caffeine-ng"
changelog="https://codeberg.org/WhyNotHugo/caffeine-ng/raw/branch/main/CHANGELOG.rst"
distfiles="https://codeberg.org/WhyNotHugo/caffeine-ng/archive/v${version}.tar.gz"
checksum=834c37bc03b48a554b299498eefd291e4140e71acdd18141a32eda4eef727047

build_options="xfconf"
desc_option_xfconf="XFCE power manager integration"

if [ "$CROSS_BUILD" ]; then
	hostmakedepends+=" pulseaudio"
	makedepends+=" scdoc"
fi
