~whynothugo/dotfiles

ref: 38b900dc12ae810eda071e6fd1e4f25db6bb3a2a dotfiles/packages/whynothugo-fontconfig/PKGBUILD -rw-r--r-- 983 bytes
38b900dc — Hugo Osvaldo Barrera nvim: Add borders to hover float windows 2 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Maintainer: Hugo Osvaldo Barrera <hugo@whynothugo.nl>

pkgname=whynothugo-fontconfig
pkgver=5
pkgrel=1
pkgdesc="Configure fontconfig settings."
arch=("any")
depends=(
  "ttf-fira-code" # monospace
  "ttf-nerd-fonts-symbols-mono"  # monospace
  "noto-fonts" # serif
  "noto-fonts-cjk" # cjk
  "cantarell-fonts" # ui
  "ttf-opensans" # sans serif
  "ttf-twemoji" # emoji
  "otf-fantasque-sans-mono" # terminal
)
source=(
  "80-fira-code-nerd-fonts.conf"
  "80-font-preference.conf"
)
sha256sums=(
  "189afea2f1f30566c1ea328a40d51a2416dc81ac681f73aec80038353f669751"
  "80c13e60667dcd703a83e103f8cbc00bb9369c3022712bb28209cc42e1f92c8e"
)

package() {
  install -Dm 0644 "$srcdir/80-font-preference.conf" "$pkgdir/etc/fonts/conf.d/80-font-preference.conf"
  install -Dm 0644 "$srcdir/80-fira-code-nerd-fonts.conf" "$pkgdir/etc/fonts/conf.d/80-fira-code-nerd-fonts.conf"

  ln -s /usr/share/fontconfig/conf.avail/10-sub-pixel-rgb.conf "$pkgdir/etc/fonts/conf.d/10-sub-pixel-rgb.conf"
}