# Template file for 'caffeine-ng'
pkgname=caffeine-ng
version=3.5.1
revision=1
build_style=python3-module
hostmakedepends="python3-setuptools"
depends="desktop-file-utils gtk+3 hicolor-icon-theme libnotify
 python3-dbus python3-docopt python3-ewmh python3-gobject
 python3-setproctitle python3-setuptools python3-xdg
 python3-pulsectl"
short_desc="Temporarily inhibits the screensaver and sleep mode"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-3.0-or-later"
homepage="https://github.com/caffeine-ng/caffeine-ng"
distfiles="${PYPI_SITE}/c/caffeine-ng/caffeine-ng-${version}.tar.gz"
checksum=7549c09b527be98d7313df4801aae308b2231fbcc21b1de47d16dbbe71a37f2a
# only runs lints and syntax checks via flake8
make_check=no

pre_build() {
	sed -i setup.py \
		-e '/setup_requires=/d' \
		-e '/use_scm_version/,+3d' \
		-e "/name=/ a\
		version='${version}',"
}
