description="Google Noto TTF fonts"
url="https://www.google.com/get/noto/"

packager="fabienwang <fabienwang@nutyx.org>"
contributors="Tnut, Pierre B"

makedepends=(xorg-fontconfig)

name=noto-fonts
version=20201206

source=(https://download.tuxfamily.org/nutyx/files/$name-$version.tar.xz
	66-noto-mono.conf 66-noto-sans.conf 66-noto-serif.conf)

build() {
  mkdir -p $PKG/usr/share/fonts/noto
  install -m644 ttf/Noto*/*.ttf $PKG/usr/share/fonts/noto

  mkdir -p $PKG/usr/share/fonts/TTF
  for font in Arimo Cousine Tinos; do
    install -m644 ttf/$font/*.ttf $PKG/usr/share/fonts/TTF
  done

  # fontconfig files
  install -Dm644 $SRC/*.conf -t $PKG/etc/fonts/conf.avail/
}
