caffeine-ng: update to 4.0.2.

This commit is contained in:
icp 2022-08-18 19:45:00 +05:30 committed by classabbyamp
parent f32b8c6865
commit 614d07d24f
1 changed files with 7 additions and 14 deletions

View File

@ -1,26 +1,19 @@
# Template file for 'caffeine-ng'
pkgname=caffeine-ng
version=3.5.1
revision=2
version=4.0.2
revision=1
build_style=python3-module
hostmakedepends="python3-setuptools"
hostmakedepends="python3-setuptools_scm"
depends="desktop-file-utils gtk+3 hicolor-icon-theme libnotify
python3-dbus python3-docopt python3-ewmh python3-gobject
python3-dbus python3-click 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"
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=7549c09b527be98d7313df4801aae308b2231fbcc21b1de47d16dbbe71a37f2a
checksum=ba62235c9d1eb7a3e2e448e3f7a43e66188a4beca3edbb206f8b905ba626eab5
# 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}',"
}