2016-05-01 13:34:20 +00:00
|
|
|
#if [[ $EUID -eq 0 ]]; then
|
|
|
|
# echo "You cannot run makepkg as root."
|
|
|
|
# echo "Please run this script again as a non-elevated user"
|
|
|
|
# exit 1
|
|
|
|
#fi
|
2016-04-02 17:19:14 +00:00
|
|
|
|
2016-05-01 13:34:20 +00:00
|
|
|
# Install git, yajl dependencies
|
|
|
|
sudo pacman -S --asdeps yajl git
|
2016-04-02 17:19:14 +00:00
|
|
|
|
|
|
|
cd /tmp
|
|
|
|
git clone https://aur.archlinux.org/package-query.git
|
|
|
|
cd package-query
|
2016-05-01 13:34:20 +00:00
|
|
|
sudo -u nobody makepkg -sr
|
|
|
|
sudo pacman -U `ls | grep package-query.*\.tar\.xz'
|
2016-04-02 17:19:14 +00:00
|
|
|
|
|
|
|
cd ..
|
|
|
|
git clone https://aur.archlinux.org/yaourt.git
|
|
|
|
cd yaourt
|
2016-05-01 13:34:20 +00:00
|
|
|
sudo -u nobody makepkg -sr
|
|
|
|
sudo pacman -U `ls | grep yaourt.*\.tar\.xz'
|
2016-04-02 17:19:14 +00:00
|
|
|
|
|
|
|
cd ..
|
|
|
|
rm -rf package-query yaourt
|