This commit is contained in:
Tobias Strobel 2022-09-25 21:42:57 +02:00
parent ddda86ef19
commit 023caca50e

View file

@ -11,6 +11,12 @@ fi
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)"
# Initialize AUR repo
if [[ ! -d /var/cache/pacman/aur ]]; then
install -m755 -d /var/cache/pacman/aur
repo-add /var/cache/pacman/aur/aur.db.tar.zst
fi
# Configure pacman
install -pm644 "$DIR/etc/pacman/pacman.conf" /etc/pacman.conf
install -pm644 -Dt /etc/pacman.d/conf.d \
@ -60,6 +66,7 @@ packages=(
pacman-contrib # paccache, checkupdates, pacsearch, and others
reflector # Weekly mirrorlist updates
kernel-modules-hook # Keep kernel modules on kernel updates
pkgfile
# Build packages
base-devel
namcap
@ -69,9 +76,11 @@ packages=(
# Terminal, shell & tools
man-db
man-pages
bash-completion
code
neovim
exa # Better ls (with git support)
nnn # Command line file manager (also a good pager for aurutils)
rsync
curl
p7zip
@ -112,6 +121,7 @@ packages=(
firefox # Browser
firefox-i18n-de
vlc # Video player
pipewire-jack # required by vlc
inkscape # Vector graphics
gimp # Pixel graphics
qalculate-gtk # Powerful calculator
@ -140,6 +150,7 @@ packages=(
gnome-clocks
gnome-weather
gnome-calendar
gnome-terminal
gnome-shell
gnome-shell-extensions
gnome-shell-extension-appindicator
@ -204,9 +215,9 @@ optdeps=(
#breeze-icons
)
pacman -Syu --needed "${packages[@]}"
pacman -S --needed --asdeps "${optdeps[@]}"
pacman -D --asdeps "${optdeps[@]}"
pacman -Syu --noconfirm --needed "${packages[@]}"
pacman -S --noconfirm --needed --asdeps "${optdeps[@]}"
pacman -D --noconfirm --asdeps "${optdeps[@]}"
# Currently dracut is missing an optdepends on tpm2-tools, see
# https://bugs.archlinux.org/task/73229
@ -351,12 +362,6 @@ else
bootctl update --graceful
fi
# Initialize AUR repo
if [[ ! -d /var/cache/pacman/aur ]]; then
install -m755 -d /var/cache/pacman/aur
repo-add /var/cache/pacman/aur/aur.db.tar.zst
fi
# Allow myself to build AUR packages
if [[ -n "${SUDO_USER:-}" && "$(stat -c '%U' /var/cache/pacman/aur)" != "$SUDO_USER" ]]; then
chown -R "$SUDO_USER:$SUDO_USER" /var/cache/pacman/aur