mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-07 15:43:49 +02:00
caffeine-ng: minor fixes
This commit is contained in:
parent
a634128fb2
commit
488a0dd7f5
1 changed files with 12 additions and 2 deletions
|
@ -1,17 +1,27 @@
|
||||||
# Template file for 'caffeine-ng'
|
# Template file for 'caffeine-ng'
|
||||||
pkgname=caffeine-ng
|
pkgname=caffeine-ng
|
||||||
version=3.4.0
|
version=3.4.0
|
||||||
revision=2
|
revision=3
|
||||||
noarch=yes
|
noarch=yes
|
||||||
build_style=python3-module
|
build_style=python3-module
|
||||||
pycompile_module="caffeine"
|
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-wheel python3-xdg"
|
python3-setproctitle python3-setuptools python3-xdg"
|
||||||
short_desc="Temporarily inhibits the screensaver and sleep mode"
|
short_desc="Temporarily inhibits the screensaver and sleep mode"
|
||||||
maintainer="cr6git <quark6@protonmail.com>"
|
maintainer="cr6git <quark6@protonmail.com>"
|
||||||
license="GPL-3"
|
license="GPL-3"
|
||||||
homepage="https://gitlab.com/WhyNotHugo/caffeine-ng"
|
homepage="https://gitlab.com/WhyNotHugo/caffeine-ng"
|
||||||
distfiles="https://pypi.io/packages/source/c/caffeine-ng/${pkgname}-${version}.tar.gz"
|
distfiles="https://pypi.io/packages/source/c/caffeine-ng/${pkgname}-${version}.tar.gz"
|
||||||
checksum=ca439ed6200ddb34fdfbaff817ac716a2b14839ba604d197eeef3546e7c1e31c
|
checksum=ca439ed6200ddb34fdfbaff817ac716a2b14839ba604d197eeef3546e7c1e31c
|
||||||
|
|
||||||
|
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
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue