gui-apps/gtklock-extras: new package, add 9999

Signed-off-by: Gonçalo Negrier Duarte <gonegrier.duarte@gmail.com>
This commit is contained in:
Gonçalo Negrier Duarte
2023-07-05 08:41:45 +01:00
parent d7a00602ec
commit dd44b25038
2 changed files with 82 additions and 0 deletions

View File

@@ -0,0 +1,70 @@
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit git-r3
DESCRIPTION="Gtklock modules"
HOMEPAGE="https://github.com/jovanlanik/gtklock"
EGIT_REPO_URI=https://github.com/MrDuartePT/gtklock-modules-gentoo
LICENSE="GPL-3"
SLOT="0"
RDEPEND="gui-apps/gtklock"
BDEPEND="x11-libs/gtk+
virtual/pkgconfig
playerctl? ( dev-go/act )
playerctl? ( net-libs/libsoup )
userinfo? ( sys-apps/accountsservice )"
DEPEND="${RDEPEND}
app-portage/smart-live-rebuild"
IUSE="playerctl powerbar userinfo"
REQUIRED_USE="|| ( playerctl powerbar userinfo )"
KEYWORDS="~amd64~x86"
src_compile() {
if use powerbar; then
pushd gtklock-powerbar-module || die
emake
popd || die
fi
if use playerctl; then
pushd gtklock-playerctl-module || die
emake
popd || die
fi
if use userinfo; then
pushd gtklock-userinfo-module || die
emake
popd || die
fi
}
src_install() {
dodir /usr/local/lib/gtklock
if use powerbar; then
pushd gtklock-powerbar-module || die
insinto /usr/local/lib/gtklock && doins powerbar-module.so
popd || die
fi
if use playerctl; then
pushd gtklock-playerctl-module || die
insinto /usr/local/lib/gtklock && doins playerctl-module.so
popd || die
fi
if use userinfo; then
pushd gtklock-userinfo-module || die
insinto /usr/local/lib/gtklock && doins userinfo-module.so
popd || die
fi
}

View File

@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<use>
<flag name="powerbar">gtklock module adding power controls to the lockscreen</flag>
<flag name="playerctl">gtklock module adding media player controls to the lockscreen</flag>
<flag name="userinfo">gtklock module adding user info to the lockscreen</flag>
</use>
<upstream>
<remote-id type="github">MrDuartePT/gtklock-modules-gentoo</remote-id>
</upstream>
</pkgmetadata>