systems/arch/PKGBUILD

136 lines
3.2 KiB
Bash

# Maintainer: Tobias Reisinger <tobias@msrg.cc>
# shellcheck disable=SC2034
pkgname=serguzim-system
pkgver=1
pkgrel=1
epoch=
pkgdesc=""
arch=("any")
url="https://git.serguzim.me/serguzim/system"
license=("unknown")
groups=()
depends=(
### BASE
"base"
"linux" "linux-firmware" "linux-headers"
"man-db" "man-pages" "usbutils" "sudo"
"mlocate" "vim"
"exfat-utils" "logrotate"
"zsh" "htop" "git" "wireguard-tools"
"cups" "cups-pdf"
"docker" "docker-buildx" "docker-compose"
"xdg-user-dirs"
### BASE-DEVEL
"archlinux-keyring" "autoconf" "automake" "binutils" "bison" "debugedit"
"fakeroot" "file" "findutils" "flex" "gawk" "gcc" "gettext" "grep" "groff"
"gzip" "libtool" "m4" "make" "pacman" "patch" "pkgconf" "sed" "sudo"
"texinfo" "which"
### OTHER PACKAGE MANAGERS
"nix" "flatpak"
### ARCH UTILS
"archlinux-contrib" "pacman-contrib"
"arch-audit"
"reflector" # Update arch mirrorlist
"libudev0-shim" # Arch compatibility library
### FONTS
"noto-fonts-emoji" "noto-fonts-extra" "unicode-emoji"
"ttf-dejavu" "ttf-droid" "ttf-liberation" "ttf-opensans" "ttf-roboto"
"gnu-free-fonts"
### XORG
"xorg-server" "xorg-server-xvfb" "xorg-xfd" "xorg-xinit"
"xorg-xinput" "xorg-xlsclients" "xorg-xmodmap"
"vulkan-tools"
"mesa-vdpau" "libva-mesa-driver" "opencl-mesa"
"numlockx"
### APPLICATIONS
"sddm"
#"bemenu" "bemenu-x11" "j4-dmenu-desktop"
"bspwm"
#"sxhkd" "polybar"
"pipewire-pulse" "vorbis-tools" "alsa-utils"
"gst-plugins-good" "gst-plugins-good" "gst-plugins-bad" "gst-plugins-ugly"
"polkit-gnome"
"alacritty"
"lxappearance" "qt5ct" "gnome-icon-theme-extras" "gnome-themes-extra"
"gtkspell"
"thunderbird"
"qutebrowser" "python-adblock" "python-pynacl" "pdfjs-legacy"
"ungoogled-chromium" "firefox"
"chromium-widevine" "qt5-webengine-widevine"
"kdeconnect" "keepassxc" "syncthing"
)
source=(
"boot_loader_entries_arch.conf"
"boot_loader_loader.conf"
"etc_locale.conf"
"etc_mkinitcpio.conf"
"etc_pacman.conf"
"etc_pacman.d_default.conf"
"etc_pacman.d_hooks_95-systemd-boot.hook"
"etc_sddm.conf.d_autologin.conf"
"etc_sddm.conf.d_general.conf"
"etc_sysctl.d_90-sysrq.conf"
"etc_vconsole.conf"
"etc_xdg_reflector_reflector.conf"
"etc_X11_xorg.conf.d_10-keyboard.conf"
"etc_X11_xorg.conf.d_50-mouse-acceleration.conf"
)
sha256sums=(
"SKIP"
"SKIP"
"SKIP"
"SKIP"
"SKIP"
"SKIP"
"SKIP"
"SKIP"
"SKIP"
"SKIP"
"SKIP"
"SKIP"
"SKIP"
"SKIP"
)
backup=(
"boot/loader/loader.conf"
)
_sed_path() {
echo "$1" | sed -e "s/\//_/g"
}
_install() {
temp_pkg=$1
temp_src=$(_sed_path "$temp_pkg")
# shellcheck disable=SC2154
install "-Dm${2:-644}" "${srcdir}/${temp_src}" "${pkgdir}/${temp_pkg}"
}
package() {
_install "boot/loader/entries/arch.conf" "755"
_install "boot/loader/loader.conf" "755"
_install "etc/locale.conf"
_install "etc/mkinitcpio.conf"
_install "etc/pacman.conf"
_install "etc/pacman.d/default.conf"
_install "etc/pacman.d/hooks/95-systemd-boot.hook"
_install "etc/sddm.conf.d/autologin.conf"
_install "etc/sddm.conf.d/general.conf"
_install "etc/sysctl.d/90-sysrq.conf"
_install "etc/vconsole.conf"
_install "etc/X11/xorg.conf.d/10-keyboard.conf"
_install "etc/X11/xorg.conf.d/50-mouse-acceleration.conf"
_install "etc/xdg/reflector/reflector.conf"
}
# vim: ft=sh