fix: installation on archlinux

This commit is contained in:
Klesh Wong 2021-08-26 21:13:36 +08:00
parent 270ab37f22
commit b9a7c4f42f
5 changed files with 14 additions and 4 deletions

2
env.sh
View File

@ -8,7 +8,7 @@ XDG_CONFIG_HOME=${XDG_CONFIG_HOME-"$HOME/.config"}
PREFIX=/usr/local
PDIR=$(dirname "${DIR-$0}")
GITHUB_PROXY=${GITHUB_PROXY-$HTTPS_PROXY}
WSL=$(grep -i Microsoft /proc/sys/kernel/osrelease)
WSL=$(grep -i Microsoft /proc/sys/kernel/osrelease || true)
in_china() {
! [ -f /tmp/myip_full ] && curl -s myip.ipip.net > /tmp/myip_full

View File

@ -32,10 +32,17 @@ case "$PM" in
pacman)
# TODO
sudo pacman -S --noconfirm --needed \
go
go \
browserpass
;;
esac
# longer password caching time
echo <<EOF > ~/.gnupg/gpg-agent.conf
default-cache-ttl 28800
max-cache-ttl 28800
EOF
# install browserpass-native
intorepo https://github.com/browserpass/browserpass-native.git "$DIR/repos/browserpass-native"
make configure

View File

@ -19,7 +19,7 @@ case "$PM" in
sudo apt install -y ninja-build libxext-dev libxcb1-dev libxcb-damage0-dev libxcb-xfixes0-dev libxcb-shape0-dev libxcb-render-util0-dev libxcb-render0-dev libxcb-randr0-dev libxcb-composite0-dev libxcb-image0-dev libxcb-present-dev libxcb-xinerama0-dev libxcb-glx0-dev libpixman-1-dev libdbus-1-dev libconfig-dev libgl1-mesa-dev libpcre3-dev libevdev-dev uthash-dev libev-dev libx11-xcb-dev
;;
pacman)
sudo pacman -S --noconfirm --needed uthash ninja meson
sudo pacman -S --noconfirm --needed uthash ninja meson libev libconfig
;;
esac

View File

@ -14,7 +14,8 @@ case "$PM" in
;;
pacman)
sudo pacman -S --noconfirm --needed \
trayer
trayer \
xorg-xsetroot
;;
esac

View File

@ -62,6 +62,8 @@ esac
# start network
sudo systemctl enable NetworkManager
sudo systemctl start NetworkManager
sudo systemctl enable autorandr
sudo systemctl start autorandr
lnsf "$DIR/dunst/dunstrc" "$XDG_CONFIG_HOME/dunst/dunstrc"
lnsf "$DIR/thunar/uca.xml" "$XDG_CONFIG_HOME/Thunar/uca.xml"