diff options
| author | Blake Romero <blake@blkrom.com> | 2023-05-30 11:52:17 +0100 |
|---|---|---|
| committer | Blake Romero <blake@blkrom.com> | 2023-05-30 11:52:17 +0100 |
| commit | 285a8556f738fefc258d2b7328055b0a9b874ccf (patch) | |
| tree | d039987a34d70bf1d87e0a650e43f995206e19fa | |
| parent | 83a6def03f01b08992ecdb423986ce0386f08010 (diff) | |
Add AUR helper when using arch support
| -rwxr-xr-x | install-artix.sh | 41 |
1 files changed, 23 insertions, 18 deletions
diff --git a/install-artix.sh b/install-artix.sh index 5734417..4521cdb 100755 --- a/install-artix.sh +++ b/install-artix.sh @@ -315,24 +315,29 @@ fi # Install AUR helper if [[ $enable_aur == true ]]; then - # install dependencies - deps="git pacutils perl-{libwww,term-ui,json,data-dump,lwp-protocol-https,term-readline-gnu}" - artix-chroot /mnt bash -c "pacman --noconfirm --needed -Sy ${deps}" - - # download package - rm -rf /mnt/home/${user}/trizen &> /dev/null - clone="git clone https://aur.archlinux.org/trizen" - artix-chroot /mnt bash -c "runuser -l ${user} -c \"${clone}\"" - - # build package - build="cd /home/${user}/trizen && makepkg --noconfirm" - artix-chroot /mnt bash -c "runuser -l ${user} -c \"${build}\"" - - # add package to pacman - artix-chroot /mnt bash -c "pacman -U --noconfirm /home/${user}/trizen/*.zst" - - # remove unnecessary files - rm -rf "/mnt/home/${user}/trizen" + if [[ $arch_support == true ]]; then + artix-chroot /mnt bash -c "pacman --noconfirm -Syy trizen" + else + # install dependencies + deps="git pacutils perl-{libwww,term-ui,json,data-dump,lwp-protocol-https,term-readline-gnu}" + artix-chroot /mnt bash -c "pacman --noconfirm --needed -Sy ${deps}" + + # download package + rm -rf /mnt/home/${user}/trizen &> /dev/null + clone="git clone https://aur.archlinux.org/trizen" + artix-chroot /mnt bash -c "runuser -l ${user} -c \"${clone}\"" + + # build package + build="cd /home/${user}/trizen && makepkg --noconfirm" + artix-chroot /mnt bash -c "runuser -l ${user} -c \"${build}\"" + + # add package to pacman + artix-chroot /mnt bash -c "pacman -U --noconfirm /home/${user}/trizen/*.zst" + + # remove unnecessary files + rm -rf "/mnt/home/${user}/trizen" + fi + echo "AUR helper installation complete!" fi # FINISH |
