diff --git a/srcpkgs/caffeine-ng/patches/use-ayatana-appindicator.patch b/srcpkgs/caffeine-ng/patches/use-ayatana-appindicator.patch deleted file mode 100644 index 925dad3e04102e..00000000000000 --- a/srcpkgs/caffeine-ng/patches/use-ayatana-appindicator.patch +++ /dev/null @@ -1,16 +0,0 @@ -diff --git a/caffeine/main.py b/caffeine/main.py -index 516a138..f48653b 100644 ---- a/caffeine/main.py -+++ b/caffeine/main.py -@@ -32,9 +32,9 @@ try: - gi.require_version("Notify", "0.7") - except ValueError: - gi.require_version("Notify", "0.8") --gi.require_version("AppIndicator3", "0.1") -+gi.require_version("AyatanaAppIndicator3", "0.1") - --from gi.repository import AppIndicator3 # noqa: E402 -+from gi.repository import AyatanaAppIndicator3 as AppIndicator3 # noqa: E402 - from gi.repository import GdkPixbuf # noqa: E402 - from gi.repository import Gtk # noqa: E402 - from gi.repository.Notify import Notification # noqa: E402 diff --git a/srcpkgs/caffeine-ng/template b/srcpkgs/caffeine-ng/template index 805adf929ce78d..8718d036e0e77d 100644 --- a/srcpkgs/caffeine-ng/template +++ b/srcpkgs/caffeine-ng/template @@ -1,19 +1,33 @@ # Template file for 'caffeine-ng' pkgname=caffeine-ng -version=4.0.2 -revision=7 -build_style=python3-module -hostmakedepends="python3-setuptools_scm" -depends="desktop-file-utils gtk+3 hicolor-icon-theme libnotify - python3-dbus python3-click python3-ewmh python3-gobject - python3-setproctitle python3-setuptools python3-xdg - python3-pulsectl libayatana-appindicator" +version=4.3.0 +revision=1 +build_style=meson +_python_dependencies="python3-click python3-dbus python3-ewmh + python3-gobject python3-pulsectl python3-setproctitle" +hostmakedepends="pkg-config scdoc gettext pulseaudio + ${_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="Orphaned " 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="${PYPI_SITE}/c/caffeine-ng/caffeine-ng-${version}.tar.gz" -checksum=ba62235c9d1eb7a3e2e448e3f7a43e66188a4beca3edbb206f8b905ba626eab5 -# only runs lints and syntax checks via flake8 -make_check=no +distfiles="https://codeberg.org/WhyNotHugo/caffeine-ng/archive/v${version}.tar.gz" +checksum=7df8745add76ed324ebfc372c74b139832129254cd91e846cac269a86c9f0c4c + +build_options="xfconf" +desc_option_xfconf="XFCE power manager integration" + +if [ "$CROSS_BUILD" ]; then + makedepends+=" scdoc" +fi + +pre_configure() { + echo ${version} > version +}