blob: 90a57779cb9beca548644767c52bb0ae9550230c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit gnome2-utils
DESCRIPTION="Display the current weather inside the pill next to the clock"
HOMEPAGE="https://github.com/CleoMenezesJr/weather-oclock"
SRC_URI="https://github.com/CleoMenezesJr/weather-oclock/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/${PN/gnome-shell-extension-}-${PV}"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="amd64"
RDEPEND="
app-eselect/eselect-gnome-shell-extensions
>=gnome-base/gnome-shell-48
gnome-extra/gnome-weather
!gnome-extra/gnome-shell-extension-weather-in-the-clock
"
extension_uuid="weatheroclock@CleoMenezesJr.github.io"
src_install() {
einstalldocs
insinto /usr/share/gnome-shell/extensions/
doins -r "${extension_uuid}"
}
pkg_preinst() {
gnome2_schemas_savelist
}
pkg_postinst() {
gnome2_schemas_update
ebegin "Updating list of installed extensions"
eselect gnome-shell-extensions update
eend $?
}
pkg_postrm() {
gnome2_schemas_update
}
|