2018-03-28 21:42:45 +02:00
|
|
|
# Template file for 'caffeine-ng'
|
|
|
|
pkgname=caffeine-ng
|
|
|
|
version=3.4.0
|
2018-04-15 20:07:31 +02:00
|
|
|
revision=3
|
2018-03-28 21:42:45 +02:00
|
|
|
noarch=yes
|
|
|
|
build_style=python3-module
|
2018-04-15 19:53:17 +02:00
|
|
|
pycompile_module="caffeine"
|
2018-03-28 21:42:45 +02:00
|
|
|
hostmakedepends="python3-setuptools"
|
|
|
|
depends="desktop-file-utils gtk+3 hicolor-icon-theme libnotify
|
|
|
|
python3-dbus python3-docopt python3-ewmh python3-gobject
|
2018-04-15 20:07:31 +02:00
|
|
|
python3-setproctitle python3-setuptools python3-xdg"
|
2018-03-28 21:42:45 +02:00
|
|
|
short_desc="Temporarily inhibits the screensaver and sleep mode"
|
|
|
|
maintainer="cr6git <quark6@protonmail.com>"
|
|
|
|
license="GPL-3"
|
2018-04-15 19:53:17 +02:00
|
|
|
homepage="https://gitlab.com/WhyNotHugo/caffeine-ng"
|
2018-04-20 19:37:07 +02:00
|
|
|
distfiles="${PYPI_SITE}/c/caffeine-ng/caffeine-ng-${version}.tar.gz"
|
2018-03-28 21:42:45 +02:00
|
|
|
checksum=ca439ed6200ddb34fdfbaff817ac716a2b14839ba604d197eeef3546e7c1e31c
|
2018-04-15 20:07:31 +02:00
|
|
|
|
|
|
|
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
|
|
|
|
}
|