caffeine-ng: update to 3.5.1.

Closes: #28346 [via git-merge-pr]
This commit is contained in:
mobinmob 2021-01-31 00:10:41 +02:00 committed by Érico Rolim
parent 1ada4ba6c1
commit eeb16e021c

View file

@ -1,19 +1,21 @@
# Template file for 'caffeine-ng' # Template file for 'caffeine-ng'
pkgname=caffeine-ng pkgname=caffeine-ng
version=3.4.2 version=3.5.1
revision=3 revision=1
build_style=python3-module build_style=python3-module
pycompile_module="caffeine"
hostmakedepends="python3-setuptools" hostmakedepends="python3-setuptools"
depends="desktop-file-utils gtk+3 hicolor-icon-theme libnotify depends="desktop-file-utils gtk+3 hicolor-icon-theme libnotify
python3-dbus python3-docopt python3-ewmh python3-gobject python3-dbus python3-docopt python3-ewmh python3-gobject
python3-setproctitle python3-setuptools python3-xdg" python3-setproctitle python3-setuptools python3-xdg
python3-pulsectl"
short_desc="Temporarily inhibits the screensaver and sleep mode" short_desc="Temporarily inhibits the screensaver and sleep mode"
maintainer="Orphaned <orphan@voidlinux.org>" maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-3.0-or-later" license="GPL-3.0-or-later"
homepage="https://github.com/caffeine-ng/caffeine-ng" homepage="https://github.com/caffeine-ng/caffeine-ng"
distfiles="${PYPI_SITE}/c/caffeine-ng/caffeine-ng-${version}.tar.gz" distfiles="${PYPI_SITE}/c/caffeine-ng/caffeine-ng-${version}.tar.gz"
checksum=9cf843f9359b4b8cdb2ad4a14bb433641a100e25206274eb638c494765d56816 checksum=7549c09b527be98d7313df4801aae308b2231fbcc21b1de47d16dbbe71a37f2a
# only runs lints and syntax checks via flake8
make_check=no
pre_build() { pre_build() {
sed -i setup.py \ sed -i setup.py \
@ -21,6 +23,4 @@ pre_build() {
-e '/use_scm_version/,+3d' \ -e '/use_scm_version/,+3d' \
-e "/name=/ a\ -e "/name=/ a\
version='${version}'," version='${version}',"
# remove dependency on wheel; it's not a runtime dependency
sed -i '/wheel/d' requirements.txt
} }