From 5bca208b0cd31d32cf09a5681dc0e320851cd28d Mon Sep 17 00:00:00 2001 From: bh Date: Mon, 23 Mar 2026 20:55:51 +0800 Subject: Add aur install script --- aur | 47 +++++++++++++++++++++++++++++++++++++++++++++++ install | 16 ++++++++++++---- 2 files changed, 59 insertions(+), 4 deletions(-) create mode 100755 aur diff --git a/aur b/aur new file mode 100755 index 0000000..51dba03 --- /dev/null +++ b/aur @@ -0,0 +1,47 @@ +#!/usr/bin/env bash +set -euo pipefail + +# Install paru on Arch-based systems, then clean cache. + +if [[ "$(id -u)" -eq 0 ]]; then + echo "Please run this script as a normal user, not root." + exit 1 +fi + +if ! command -v pacman >/dev/null 2>&1; then + echo "This script requires pacman. Are you on Arch or an Arch-based distro?" + exit 1 +fi + +if command -v paru >/dev/null 2>&1; then + echo "paru is already installed." +else + echo "Installing required packages..." + sudo pacman -S --needed --noconfirm base-devel git + + tmpdir="$(mktemp -d)" + trap 'rm -rf "$tmpdir"' EXIT + + echo "Cloning paru into $tmpdir..." + git clone https://aur.archlinux.org/paru.git "$tmpdir/paru" + + cd "$tmpdir/paru" + + echo "Building and installing paru..." + makepkg -si --noconfirm +fi + +echo "Cleaning paru cache..." +paru -Scc --noconfirm || true + +echo "Done." + +packages=( + llama.cpp + ledger-live + orca-slicer + tidal-hifi-bin + dropbox +) + +paru -S --needed "${packages[@]}" diff --git a/install b/install index 870cf79..48f0c77 100755 --- a/install +++ b/install @@ -52,7 +52,6 @@ packages=( audacity gimp blender - dropbox-cli flatpak thunar @@ -75,7 +74,7 @@ packages=( zoxide yazi tmux - aria2c + aria2 jq perl-rename lftp @@ -96,6 +95,13 @@ packages=( wl-clipboard cliphist + # Backup Desktop + bspwm + sxhkd + polybar + feh + xorg + # Drivers bluez cups @@ -158,7 +164,7 @@ packages=( ttf-monoid-nerd ttf-mononoki-nerd ttf-mplus-nerd - ttf-nanumgothic_coding + # ttf-nanumgothic_coding ttf-nerd-fonts-symbols ttf-nerd-fonts-symbols-mono ttf-noto-nerd @@ -180,7 +186,9 @@ packages=( # Music reaper timidity++ - + mpd + mpc + rmpc ) sudo pacman -S --needed "${packages[@]}" -- cgit v1.2.3