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