gui-apps/ReGreet: fix ebuild syntax warnings

Signed-off-by: Gonçalo Negrier Duarte <gonegrier.duarte@gmail.com>
This commit is contained in:
Gonçalo Negrier Duarte
2023-07-26 14:02:08 +01:00
parent 821c9cc76a
commit 197eb5135a

View File

@@ -3,7 +3,7 @@
EAPI=7
inherit cargo git-r3
inherit cargo git-r3
EGIT_REPO_URI="https://github.com/rharish101/ReGreet.git"
@@ -30,7 +30,7 @@ IUSE="gtk4 logs cage sway"
REQUIRED_USE="|| ( cage sway ) cage? ( !sway ) sway? ( !cage )"
src_unpack() {
git-r3_src_unpack
git-r3_src_unpack
cargo_live_src_unpack
}
@@ -48,21 +48,21 @@ src_compile() {
}
src_install() {
newbin ${WORKDIR}/${P}/target/release/regreet regreet
newbin "${WORKDIR}/${P}/target/release/regreet" regreet
if use cage; then
insinto /etc/greetd/ && newins ${FILESDIR}/config-cage.toml config.toml
insinto /etc/greetd/ && newins "${FILESDIR}/config-cage.toml" config.toml
echo "Restart cage service to verify if works (Only activate on TTY1)"
fi
if use sway; then
insinto /etc/greetd/ && newins ${FILESDIR}/config-sway.toml config.toml
insinto /etc/greetd/ && doins ${FILESDIR}/sway-config
insinto /etc/greetd/ && newins "${FILESDIR}/config-sway.toml" config.toml
insinto /etc/greetd/ && doins "${FILESDIR}/sway-config"
echo "Restart cage service to verify if works (Only activate on TTY1)"
fi
}
src_post_install () {
if use logs; then
insinto /etc/tmpfiles.d/ && newins ${WORKDIR}/${P}/systemd-tmpfiles.conf regreet.conf
insinto /etc/tmpfiles.d/ && newins "${WORKDIR}/${P}/systemd-tmpfiles.conf" regreet.conf
systemd-tmpfiles --create "$PWD/systemd-tmpfiles.conf"
fi
}