diff options
| author | bh <qn+git@epicurus.dev> | 2026-04-01 20:59:53 +0800 |
|---|---|---|
| committer | bh <qn+git@epicurus.dev> | 2026-04-01 20:59:53 +0800 |
| commit | e497345779c98353ca3481121981d7ef41bf7b73 (patch) | |
| tree | 4be69ba5515bdd5ef758d097ae3a1d083521b3ee /.install/aur | |
| parent | 71e75e351867060d8cf00e676b70341022f0fe17 (diff) | |
Refactor scripts
Diffstat (limited to '.install/aur')
| -rwxr-xr-x | .install/aur | 56 |
1 files changed, 0 insertions, 56 deletions
diff --git a/.install/aur b/.install/aur deleted file mode 100755 index d7343d7..0000000 --- a/.install/aur +++ /dev/null @@ -1,56 +0,0 @@ -#!/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 [[ "${1:-}" == "--noconfirm" ]]; then - confirm_flags=(--noconfirm) -else - confirm_flags=() -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 "${confirm_flags[@]}" 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 "${confirm_flags[@]}" -fi - -echo "Cleaning paru cache..." -paru -Scc "${confirm_flags[@]}" || true - -echo "Done." - -packages=( - traur - llama.cpp - ledger-live - orca-slicer - tidal-hifi-bin - dropbox - localsend - davinci-resolve -) - -paru -S --needed "${confirm_flags[@]}" "${packages[@]}" |
