Add gnome-extra/caffeine

This commit is contained in:
madmaurice 2020-01-02 12:00:58 +01:00
parent b08c391cbf
commit eb958a9985
2 changed files with 39 additions and 0 deletions

View file

@ -0,0 +1,2 @@
DIST caffeine-33.zip 55697 BLAKE2B b3c51a2093057d7379abe55e9bdcd8ea385da07aab48718fb02011dffa998e5d2ae2d06aee1d2d541a42ecf65dca1112dd9b5d2b4d66b7e0f05b2ed08478bb45 SHA512 61bfb24a4aff085de9c986fb33d1f2d62dec0924ae2f6af86854acf341aa465ba680f00637e210dc41a30eefbe565286a99945c2f7b22cb6c51499b1bce88447
EBUILD caffeine-33.ebuild 1095 BLAKE2B d840ba799ae4cc4f32761a90c0ce616fa44e6f0b7c5204b2d67f21cefd796f459186dca3019eb3b480f338f81c2f3f97186d1488a06b403e3f7bf783b292d030 SHA512 ca9e3f97510976c9f63b8d6093dc37c99a8864ef47aa479fe1979b0f5f2679d39582ca087ddec85f9dca3bf8c0bb9e64546dd452277d10538855a5d38f13cc5e

View file

@ -0,0 +1,37 @@
# Copyright 2019-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
DESCRIPTION="Disable the screensaver and auto suspend"
HOMEPAGE="https://github.com/eonpatapon/gnome-shell-extension-caffeine"
SRC_URI="https://extensions.gnome.org/extension-data/caffeinepatapon.info.v33.shell-extension.zip -> ${P}.zip"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64"
IUSE="l10n_ja l10n_fr l10n_es l10n_pt l10n_ru l10n_hu l10n_sk l10n_pl l10n_tr l10n_sv l10n_it l10n_zh l10n_de"
RDEPEND="
>=gnome-base/gnome-shell-3.32"
DEPEND="${RDEPEND}"
S="$WORKDIR"
GNOME_EXT_UUID="${PN}@patapon.info"
src_install() {
insinto "/usr/share/gnome-shell/extensions/${GNOME_EXT_UUID}"
doins "extension.js" "metadata.json" "prefs.js" "convenience.js"
doins -r "icons" "schemas"
insinto "/usr/share/gnome-shell/extensions/${GNOME_EXT_UUID}/locale"
for l in ja fr es ru hu sk pl tr sv de; do
use l10n_${l} && doins -r "locale/${l}"
done
use l10n_it && doins -r "locale/it_IT"
use l10n_pt && doins -r "locale/pt_BR" "locale/pt_PT"
use l10n_zh && doins -r "locale/zh_CN"
}