arch/pkg/de-p1st-xfce4/PKGBUILD

157 lines
5.0 KiB
Bash
Raw Normal View History

2021-05-05 16:20:25 +02:00
# Maintainer: Daniel Langbein <daniel@systemli.org>
_pkgname=xfce4
_reponame=arch
pkgname="de-p1st-$_pkgname"
2021-11-13 11:37:07 +01:00
pkgver=0.1.5
2021-09-06 11:50:23 +02:00
pkgrel=1
2021-05-05 16:20:25 +02:00
pkgdesc="XFCE4 with configuration"
arch=('any')
url="https://codeberg.org/privacy1st/${_reponame}"
license=('MIT')
2021-05-11 17:13:04 +02:00
makedepends=('git')
makedepends+=('rsync') # to merge two directories
2021-07-12 11:13:14 +02:00
backup=('etc/skel/.config/xfce4/xfconf/xfce-perchannel-xml/thunar.xml') # de-p1st-xfce4-hidpi changes this file through holo
2021-05-11 17:13:04 +02:00
install='.install'
source=("git+${url}.git" "git+https://codeberg.org/privacy1st/md-to-pdf.git")
2021-09-03 15:31:36 +02:00
sha256sums=('SKIP' 'SKIP')
2021-05-05 16:20:25 +02:00
depends=()
2021-05-05 17:14:04 +02:00
# ============== base, drivers and xorg ==============
2021-11-13 11:37:07 +01:00
depends+=('de-p1st-base-gui')
2021-05-05 17:20:11 +02:00
depends+=('de-p1st-gpu')
depends+=('xorg-meta')
2021-05-05 16:20:25 +02:00
2021-05-05 16:54:51 +02:00
# ============== XFCE4 ==============
2021-05-05 16:20:25 +02:00
#
# xfce4 group except thunar, thunar-volman, tumbler
# -> pacman -Sg xfce4 | sed 's|^xfce4 |depends+=(|; s|$|)|'
depends+=(exo)
depends+=(garcon)
depends+=(xfce4-appfinder)
depends+=(xfce4-panel)
depends+=(xfce4-power-manager)
depends+=(xfce4-session)
depends+=(xfce4-settings)
depends+=(xfce4-terminal)
depends+=(xfconf)
depends+=(xfdesktop)
depends+=(xfwm4)
depends+=(xfwm4-themes)
#
2021-05-05 16:20:25 +02:00
# some pkgs from xfce4-goodies group, except e.g.
# -> ristretto (image viewer)
# -> xfce4-artwork
# -> xfce4-time-out-plugin (take breaks)
# -> xfce4-timer-plugin
# -> xfce4-xkb-plugin (keyboard layouts)
# -> thunar-media-tags-plugin
depends+=(mousepad xfce4-genmon-plugin xfce4-notifyd xfce4-screensaver xfce4-screenshooter xfce4-weather-plugin xfce4-whiskermenu-plugin)
2021-05-05 16:20:25 +02:00
#
# keyring/secrets
2021-06-19 21:20:25 +02:00
# -> https://wiki.archlinux.org/title/GNOME/Keyring#Installation
2021-05-05 16:20:25 +02:00
depends+=(gnome-keyring libsecret)
2021-05-11 17:53:25 +02:00
#
# bluelight filter
depends+=(de-p1st-redshift)
2021-05-05 16:20:25 +02:00
# ============== display manager ==============
2021-05-14 12:51:26 +02:00
# sddm with autologin
2021-06-18 21:46:50 +02:00
# depends+=(de-p1st-sddm-autologin)
#
2021-05-14 15:25:25 +02:00
# sddm themeing
depends+=(de-p1st-sddm-theme)
2021-05-05 16:20:25 +02:00
2021-09-06 11:29:36 +02:00
# ============== file manager: thunar/nautilus and optional dependencies ==============
# Option1: thunar
2021-09-03 16:43:36 +02:00
#depends+=(thunar thunar-media-tags-plugin thunar-volman)
#depends+=(tumbler) # thunar thumbnail previews
#depends+=(gvfs) # for trash support, mounting with udisk and remote filesystems (e.g. webdav)
#
# Option2: nautilus (GNOME files)
2021-09-06 11:29:36 +02:00
# -> As thunar contains libraries required by xfdesktop, it will still be installed
# -> https://forum.xfce.org/viewtopic.php?pid=63945#p63945
2021-09-03 16:43:36 +02:00
depends+=(nautilus)
depends+=(xdg-user-dirs) # nautilus new file templates
depends+=(python-nautilus) # e.g. Nextcloud integration
2021-09-15 17:45:28 +02:00
depends+=(libnotify cmark-gfm de-p1st-image-width-limit wkhtmltopdf) # md-to-pdf script depends on these packages
# compression/archiving
# -> https://docs.xfce.org/xfce/thunar/archive#supported_archive_managers
#
# Option1: thunar and xarchiver
#depends+=(thunar-archive-plugin xarchiver p7zip unzip zip unrar)
#
# Option2: thunar and file-roller
2021-09-03 16:43:36 +02:00
#depends+=(thunar-archive-plugin file-roller p7zip unrar)
#
# Option3: nautilus and file-roller
2021-09-03 16:43:36 +02:00
depends+=(file-roller)
# ============== audio ==============
# pulseaudio - base
2021-06-22 20:31:49 +02:00
depends+=('pulseaudio' 'pulseaudio-alsa' 'pavucontrol')
# pulseaudio - xfce4
2021-06-22 20:31:49 +02:00
depends+=('xfce4-pulseaudio-plugin')
# sound theme
2021-06-22 20:31:49 +02:00
depends+=('libcanberra' 'libcanberra-pulse')
2021-06-27 14:55:11 +02:00
# ============== bluetooth (TODO) ==============
2021-06-29 16:47:20 +02:00
depends+=('toggle-bluetooth')
2021-06-27 14:55:11 +02:00
# ============== network, theme, wallpaper, keyboard ==============
2021-05-05 16:54:51 +02:00
#
2021-06-19 22:56:16 +02:00
# NetworkManager and NetworkManager applet
2021-05-05 16:54:51 +02:00
depends+=(network-manager-applet) # depends on networkmanager
#
# gtk and qt theme
depends+=(de-p1st-theme)
#
2021-06-27 14:55:11 +02:00
# wallpaper
depends+=(de-p1st-wallpaper)
#
2021-05-11 17:53:25 +02:00
# x11 keyboard layouts
2021-05-05 16:54:51 +02:00
depends+=(de-p1st-keyboard-x11)
2021-06-19 21:20:25 +02:00
optdepends=()
2021-06-27 14:55:11 +02:00
2021-06-19 21:20:25 +02:00
# https://wiki.archlinux.org/title/GNOME/Keyring#Manage_using_GUI
optdepends+=('seahorse: Manage the contents of GNOME Keyring; manage GPG keys')
2021-09-06 11:50:23 +02:00
optdepends+=('seahorse-nautilus: PGP encryption and signing for nautilus')
2021-06-19 21:20:25 +02:00
2021-09-03 15:50:35 +02:00
build() {
# copy nautilus script
2021-09-06 13:07:46 +02:00
cp md-to-pdf/md-to-pdf "${_reponame}/pkg/${pkgname}"/skel_nautilus/.local/share/nautilus/scripts/md-to-pdf
2021-09-03 15:50:35 +02:00
}
package() {
2021-05-05 16:20:25 +02:00
cd "${_reponame}/pkg/${pkgname}"
2021-09-03 15:50:35 +02:00
install -Dm0644 img/face.jpg "$pkgdir"/etc/skel/.face
2021-05-05 16:20:25 +02:00
# Adding a xml configuration to /etc/xdg/xfce4/xfconf/xfce-perchannel-xml/*.xml does not work.
# (It will not be copied to ~/.config/xfce4/xfconf/xfce-perchannel-xml/*.xml)
# Thus we place it in the skeleton for new users!
# -> See comments in individual files in directory "config"
# -> Additionally there is the file .config/user-dirs.dirs for nautilus new file templates
mkdir -p "$pkgdir"/etc/
rsync -av skel/ "$pkgdir"/etc/skel/
2021-05-11 17:13:04 +02:00
2021-07-02 11:03:09 +02:00
# === shortcuts ===
2021-09-06 13:53:40 +02:00
# Did not work with "$pkgdir"/etc/xdg/xfce4/xfconf/xfce-perchannel-xml/xfce4-keyboard-shortcuts.xml
2021-07-02 11:03:09 +02:00
2021-05-05 16:20:25 +02:00
# === display manager ===
2021-07-02 11:03:09 +02:00
install -Dm0644 systemd.preset "$pkgdir"/usr/lib/systemd/system-preset/20-"$pkgname".preset
install -Dm0644 p1st-settings.conf "$pkgdir"/etc/sddm.conf.d/p1st-settings.conf
# === nautilus ===
2021-09-06 13:53:40 +02:00
# -> default file manager
# -> nautilus scripts
# -> .config/dconf/user -> nautilus preferences (show hidden files, list view, show create symlink)
mkdir -p "$pkgdir"/etc/
rsync -av skel_nautilus/ "$pkgdir"/etc/skel/
2021-05-05 16:20:25 +02:00
}