summaryrefslogtreecommitdiff
path: root/install-artix.sh
diff options
context:
space:
mode:
authorBlake Romero <blake@blkrom.com>2024-03-28 16:38:09 +0000
committerBlake Romero <blake@blkrom.com>2024-03-28 16:38:09 +0000
commit434e251c576d0988a512a08d4300f460f16e456f (patch)
treed375088bb85915dcf1b50aca2be25ffdf721d36f /install-artix.sh
parent55ba072a68b1e339af61c677971d98b4faa2481e (diff)
Remove build procedure when installing AUR helper
Diffstat (limited to 'install-artix.sh')
-rwxr-xr-xinstall-artix.sh24
1 files changed, 2 insertions, 22 deletions
diff --git a/install-artix.sh b/install-artix.sh
index e70eae6..6b58b8b 100755
--- a/install-artix.sh
+++ b/install-artix.sh
@@ -321,28 +321,8 @@ fi
# Install AUR helper
if [[ $enable_aur == true ]]; then
- 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
+ artix-chroot /mnt bash -c "pacman --noconfirm -Syy trizen" \
+ || { echo "Error downloading trizen AUR helper"; exit; }
echo "AUR helper installation complete!"
fi