Skip to content

Instantly share code, notes, and snippets.

@misraX
Last active August 3, 2017 10:19
Show Gist options
  • Save misraX/52cd9449641e4308b1669c7e78c2ff43 to your computer and use it in GitHub Desktop.
Save misraX/52cd9449641e4308b1669c7e78c2ff43 to your computer and use it in GitHub Desktop.
#/bin/bash
# Created By: misraX
# Github: github.com/misrax
# License: MIT
# For the purpose of testing and individual usage
# The purpose of using it is to solve the dependancies problem and the manual installion of every needed package.
# The script consider that you are already in the desired build directory just feed the array with the desired package or packages
# And let it automat the automat :D,
# NOTICE: Some packages may fail if it depends on another package.
PACKAGES_NEEDED=('$1')
for PACKAGE in $PACKAGES_NEEDED; do
if [ ! -d $PACKAGE ]; then
git clone "https://aur.archlinux.org/$PACKAGE.git"
else
cd $PACKAGE
makepkg -si --noconfirm
cd -
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment