gui-apps/ashell: add systemd user unit

Signed-off-by: Henrik Steffen Gaßmann <henrik@gassmann.onl>
This commit is contained in:
Henrik Steffen Gaßmann
2025-11-10 16:48:16 +01:00
parent 02497ea180
commit 1faf6927b1
3 changed files with 28 additions and 1 deletions

View File

@@ -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."
}