APP=dejavu-fonts-ttf
VERSION=2.37
BUILD=1sml
HOMEPAGE="http://dejavu-fonts.github.io"
DOWNLOAD="https://github.com/dejavu-fonts/dejavu-fonts/archive/refs/tags/version_2_37.tar.gz"
REQUIRES="fontconfig mkfontscale "
DESC="Font family based on the Bitstream Vera Fonts with a wider range of characters"

build() {
  mkandenterbuilddir
  rm -rf $APP-$VERSION

  tar xf $SRCDIR/$APP-$VERSION.tar.?z*
  cd $APP-$VERSION 
  fixbuilddirpermissions

  mkdir -p $PKG/share/fonts/TTF
  cp -a ttf/* $PKG/share/fonts/TTF/
  cp LICENSE $PKGDOCS/

  mkdir -p $PKG/etc/fonts/conf.d
  ( cd fontconfig 
    for file in * ; do
    cp -a $file $PKG/etc/fonts/conf.d/
    done
  )

  mkfinalpkg
}

SHA512SUMS="
e37ab33fada7499a57c1a798fae0645aeb545516ae300fa39a689fc681b4a7734a92d2c003fe1c680ad961ced43db5828b8da1cc28d9b28b4559aecab61327e1  dejavu-fonts-ttf-2.37.tar.xz
"
