-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sh
60 lines (49 loc) · 972 Bytes
/
build.sh
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#!/usr/bin/env bash
set -euo pipefail
function step() {
echo "[$(date +%H:%M:%S)] $@..." >&2
}
packages=(
awk
curl
diffutils
docker
git
git-lfs
go
golangci-lint-bin
helm
make
nodejs-lts-hydrogen
npm
tar
trivy
unzip
which
zip
)
step "Installing signing key for luzifer repo"
pacman-key --init
curl -sSfL https://archrepo.hub.luzifer.io/x86_64/luzifer.asc |
pacman-key --add -
pacman-key --lsign-key 6F73A4F39CDF652E3F944142085AA223D0391BF9
step "Configuring pacman"
cat <<'EOF' >/etc/pacman.conf
[options]
HoldPkg = pacman glibc
Architecture = auto
ParallelDownloads = 10
Color
CheckSpace
SigLevel = Required DatabaseOptional
LocalFileSigLevel = Optional
[core]
Include = /etc/pacman.d/mirrorlist
[luzifer]
SigLevel = Required
Server = https://archrepo.hub.luzifer.io/$arch
[extra]
Include = /etc/pacman.d/mirrorlist
EOF
step "Installling desired packages"
pacman -Syy --noconfirm "${packages[@]}"