summaryrefslogtreecommitdiff
path: root/.install/aur
diff options
context:
space:
mode:
authorbh <qn+git@epicurus.dev>2026-03-23 21:13:41 +0800
committerbh <qn+git@epicurus.dev>2026-03-23 21:13:41 +0800
commitfd1067b9434b3a161cbd09e0cbffa23151c4c279 (patch)
tree21d99573b04605bc870812f8f397bc5149afb902 /.install/aur
parent5bca208b0cd31d32cf09a5681dc0e320851cd28d (diff)
Fix location of install scripts
Diffstat (limited to '.install/aur')
-rwxr-xr-x.install/aur47
1 files changed, 47 insertions, 0 deletions
diff --git a/.install/aur b/.install/aur
new file mode 100755
index 0000000..51dba03
--- /dev/null
+++ b/.install/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[@]}"