38 lines
835 B
Bash
38 lines
835 B
Bash
# Copyright 1999-2020 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=7
|
|
|
|
DESCRIPTION="Add hibernate/hybrid suspend button in status menu"
|
|
HOMEPAGE="https://github.com/arelange/gnome-shell-extension-hibernate-status"
|
|
SRC_URI="https://github.com/arelange/gnome-shell-extension-hibernate-status/archive/refs/tags/v${PV}.zip -> ${P}.zip"
|
|
|
|
|
|
LICENSE="GPL-2"
|
|
SLOT="0"
|
|
KEYWORDS="amd64 x86"
|
|
IUSE=""
|
|
|
|
RDEPEND="
|
|
app-eselect/eselect-gnome-shell-extensions
|
|
>=gnome-base/gnome-shell-3.34
|
|
"
|
|
DEPEND=""
|
|
BDEPEND=""
|
|
|
|
src_compile () { :; }
|
|
|
|
src_install() {
|
|
einstalldocs
|
|
rm -f LICENSE README.md || die
|
|
|
|
insinto /usr/share/gnome-shell/extensions/hibernatestatus@arelange.gitcub.com
|
|
doins -r *
|
|
}
|
|
|
|
pkg_postinst() {
|
|
ebegin "Updating list of installed extensions"
|
|
eselect gnome-shell-extensions update
|
|
eend $?
|
|
}
|