You are not logged in.

#1 2015-08-26 06:53:49

dragonauta
Member
Registered: 2012-05-15
Posts: 313
Website

Dealing with AUR4, my way

Hi to all!

Trying to deal with aur4 since it moved to git.

I made these 2 little scripts:

install-from-aur4

#!/bin/zsh
# USAGE: install-from-aur4 <git-url>
# I'm using ZSH but you can change to BASH. It will work.
# I have a git folder under my home to clone repos
cd $HOME/git/
if [ -d "$1" ]; then
  # if cloned folder exists do a git pull
  cd $1
  git pull origin master
else
  # if doesn't, do a clone
  git clone https://aur4.archlinux.org/$1.git
  cd $1
fi
makepkg -si
cd $HOME/git/

update-from-aur4

#!/bin/zsh
# USAGE: update-from-aur4
# looks for non-repo packages
for i in $(pacman -Qqm); do 
 install-from-aur4 $i;
done

me
"Politicians and diapers need to be changed often ... and for the same reasons."

Offline

#2 2015-08-26 11:08:40

pablokal
Administrator
From: Nijmegen, Holland
Registered: 2010-10-12
Posts: 3,620
Website

Re: Dealing with AUR4, my way

Thanks!!


Getting your questions answered here at ArchBang Forums
Please! Always give hardware info, if there is a chance that 's relevant: #lspci -vnn
On Arch(bang) and Openbox: http://stillstup.blogspot.com/

Offline

Board footer

Powered by FluxBB