aboutsummaryrefslogtreecommitdiff
path: root/distro/ubuntu.sh
blob: e80ab9fed022aafda5364e5728058d31748ee5bb (plain) (blame)
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
#!/bin/sh
set -ex
nvimdir="$HOME/scm/pub/neovim-nvim"

sudo apt update

# arm64/rockchip
case "$(uname -r)" in
*rockchip)
sudo apt install -y cryptsetup vlc zram-config 
;;
esac

sudo apt install -y \
	btop \
	curl \
	dconf-editor \
	git \
	htop \
	lua-nvim \
	neofetch \
	neovim \
	npm \
	oathtool \
	pavucontrol \
	scdaemon \
	tmux \
	vim \
	wl-clipboard \


sudo apt build-dep -y neovim

if ! [ -d "$nvimdir" ] ; then
	git clone https://github.com/neovim/neovim "$nvimdir"
fi
cd "$nvimdir"
rm -rf build || echo ""
make CMAKE_EXTRA_FLAGS="-DCMAKE_INSTALL_PREFIX=$HOME/.local" -j"$(nproc)"
make install
cd -

if echo "$XDG_CURRENT_DESKTOP" | grep -qi gnome ; then
	sudo apt install -y \
		gnome-tweaks flatpak gnome-software-plugin-flatpak

	chksum="dbf3f104767455a7a3d16608a515e0888661782abee372a443e23cebca63239c"
	commit=4a90c70fa68641ed34a9a4b892064bb51b276b06
	tmpf="$(mktemp)"
	trap "rm -f $tmpf" EXIT INT
	curl https://raw.githubusercontent.com/nordtheme/gnome-terminal/$commit/src/nord.sh \
		> "$tmpf"
	if sha256sum "$tmpf" | grep -qi "$chksum"; then
		bash "$tmpf"
	else
		echo "bad checksum"
	fi

fi