mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-08 22:52:59 -04:00
gui-apps/ashell: add systemd user unit
Signed-off-by: Henrik Steffen Gaßmann <henrik@gassmann.onl>
This commit is contained in:
@@ -704,7 +704,7 @@ declare -A GIT_CRATES=(
|
||||
LLVM_COMPAT=( 18 19 20 )
|
||||
RUST_NEEDS_LLVM=1
|
||||
|
||||
inherit cargo llvm-r1
|
||||
inherit cargo llvm-r1 systemd
|
||||
|
||||
DESCRIPTION="A ready to go Wayland status bar for Hyprland"
|
||||
HOMEPAGE="https://github.com/MalpenZibo/ashell"
|
||||
@@ -739,3 +739,15 @@ pkg_setup() {
|
||||
llvm-r1_pkg_setup
|
||||
rust_pkg_setup
|
||||
}
|
||||
|
||||
src_install() {
|
||||
# default invokes `make install` which invokes `sudo cp`
|
||||
# therefore explicitly invoke cargo_src_install
|
||||
cargo_src_install
|
||||
einstalldocs
|
||||
systemd_douserunit "${FILESDIR}/ashell.service"
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
systemd_is_booted && elog "This port provides the systemd user service unit ashell.service."
|
||||
}
|
||||
|
||||
14
gui-apps/ashell/files/ashell.service
Normal file
14
gui-apps/ashell/files/ashell.service
Normal file
@@ -0,0 +1,14 @@
|
||||
[Unit]
|
||||
Description=A ready to go Wayland status bar for Hyprland.
|
||||
Documentation=https://malpenzibo.github.io/ashell/docs/intro
|
||||
PartOf=graphical-session.target
|
||||
After=graphical-session.target
|
||||
Requisite=graphical-session.target
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/bin/ashell
|
||||
ExecReload=kill -SIGUSR2 $MAINPID
|
||||
Restart=on-failure
|
||||
|
||||
[Install]
|
||||
WantedBy=graphical-session.target
|
||||
@@ -3,6 +3,7 @@
|
||||
<pkgmetadata>
|
||||
<!-- maintainer-needed -->
|
||||
<upstream>
|
||||
<doc>https://malpenzibo.github.io/ashell/docs/intro</doc>
|
||||
<bugs-to>https://github.com/MalpenZibo/ashell/issues</bugs-to>
|
||||
<changelog>https://github.com/MalpenZibo/ashell/releases</changelog>
|
||||
<remote-id type="github">MalpenZibo/ashell</remote-id>
|
||||
|
||||
Reference in New Issue
Block a user