aboutsummaryrefslogtreecommitdiff
path: root/utils/install_pacaur
blob: 0cabd46d1ea380d5e2461fb4156681aaf6fa836c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# vim: ft=sh

# Installs pacaur
# This expect base and base-devel to be installed
set -e

if pacaur --version 2>&1 1>/dev/null; then
	echo "Pacaur seems to be installed already"
	exit 0
fi

# Make sure that we have wget
sudo pacman --needed -S wget
# Download pacaur tar
wget https://aur.archlinux.org/cgit/aur.git/snapshot/pacaur.tar.gz
# Download cower (pacaur dependency)
wget https://aur.archlinux.org/cgit/aur.git/snapshot/cower.tar.gz

# Receive cower gpg key
gpg --keyserver pgp.mit.edu --recv-keys 1EB2638FF56C0C53

# Install cower
tar -xzf cower.tar.gz
cd cower
makepkg -Acis
cd ..
rm -rf cower cower.tar.gz
# Install pacaur
tar -xzf pacaur.tar.gz
cd pacaur
makepkg -Acis
cd ..
rm -rf pacaur pacaur.tar.gz
# Set cower to be just an dependency
pacman -D --asdeps cower