]>
code.delx.au - monosys/blob - aur-install
6 if [ -z "$PKGNAME" ]; then
7 echo "Usage: $0 pkgname"
11 function enter_directory
{
16 function fetch_latest_changes
{
17 if [ ! -d .git
]; then
19 git remote add origin
"https://aur.archlinux.org/${PKGNAME}"
22 git
reset origin
/master
29 function ask_user_to_continue
{
30 read -p "Ok? (y/n) " ok
31 if [ "$ok" != "y" ]; then
36 function build_and_install
{
41 enter_directory
"/var/abs/aur/${PKGNAME}"