Skip to content

Instantly share code, notes, and snippets.

@RustyRaptor
Last active February 2, 2023 00:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RustyRaptor/b439e4d983fe35ae024150d9539215fa to your computer and use it in GitHub Desktop.
Save RustyRaptor/b439e4d983fe35ae024150d9539215fa to your computer and use it in GitHub Desktop.
Installs a list of dependencies you provide for an AUR package.
#!/bin/bash
# Installs a list of dependencies.
# First tries to install from official repos then tries to install from AUR
# Place in the folder where you store AUR packages and run on a list of deps
# example: ./get_deps.sh 'libluv' 'libtermkey' 'libuv' 'libvterm-0.1' 'luajit'
for dep in "$@"
do
echo "$dep"
sudo pacman -S --noconfirm "$dep" || git clone "https://aur.archlinux.org/$dep.git"
cd "$dep" && makepkg -si --noconfirm
cd ".."
done
@RustyRaptor
Copy link
Author

Fixed so that it cds relative instead my full path

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment