The AUR package aylurs-gtk-shell depends on libastal and libastal-4 which no longer exist in AUR. Only the -git variants exist. The -git version (aylurs-gtk-shell-git) correctly depends on libastal-git and libastal-4-git.
45 lines
1.1 KiB
Bash
45 lines
1.1 KiB
Bash
#!/usr/bin/env bash
|
|
|
|
module_description() {
|
|
printf "AGS (Aylur's Gtk Shell) - Widget system for Hyprland\n"
|
|
}
|
|
|
|
module_required() { return 0; }
|
|
module_should_skip() {
|
|
command -v ags >/dev/null 2>&1
|
|
}
|
|
|
|
module_main() {
|
|
log_section "AGS Installation"
|
|
|
|
if command -v ags >/dev/null 2>&1; then
|
|
tui_success "AGS already installed"
|
|
return 0
|
|
fi
|
|
|
|
if ! have paru && ! have yay; then
|
|
tui_warn "No AUR helper found. Install ags manually: paru -S aylurs-gtk-shell-git"
|
|
return 0
|
|
fi
|
|
|
|
local aur_helper
|
|
have paru && aur_helper="paru" || aur_helper="yay"
|
|
local ags_pkg="aylurs-gtk-shell-git"
|
|
|
|
tui_warn "AGS must be built from source (npm install + Go + meson)."
|
|
tui_warn "This can take several minutes."
|
|
printf '\n'
|
|
|
|
if ! tui_confirm "Install AGS now?"; then
|
|
tui_info "AGS installation skipped. Run later: $aur_helper -S $ags_pkg"
|
|
return 0
|
|
fi
|
|
|
|
tui_info "Installing $ags_pkg from AUR..."
|
|
if "$aur_helper" -S --needed --noconfirm "$ags_pkg"; then
|
|
tui_success "AGS installed"
|
|
else
|
|
tui_warn "AGS installation failed. Try manually: $aur_helper -S $ags_pkg"
|
|
fi
|
|
}
|