Last active
February 2, 2023 00:15
-
-
Save RustyRaptor/b439e4d983fe35ae024150d9539215fa to your computer and use it in GitHub Desktop.
Installs a list of dependencies you provide for an AUR package.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Fixed so that it cds relative instead my full path