void-packages/srcpkgs/caffeine-ng/template

28 lines
924 B
Bash

# Template file for 'caffeine-ng'
pkgname=caffeine-ng
version=3.4.2
revision=1
noarch=yes
build_style=python3-module
pycompile_module="caffeine"
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"
short_desc="Temporarily inhibits the screensaver and sleep mode"
maintainer="cr6git <quark6@protonmail.com>"
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=9cf843f9359b4b8cdb2ad4a14bb433641a100e25206274eb638c494765d56816
pre_build() {
sed -i setup.py \
-e '/setup_requires=/d' \
-e '/use_scm_version/,+3d' \
-e "/name=/ a\
version='${version}',"
# remove dependency on wheel; it's not a runtime dependency
sed -i '/wheel/d' requirements.txt
}