APP=liberation-fonts-ttf
VERSION=2.1.0
BUILD=1sml
HOMEPAGE="https://github.com/liberationfonts/liberation-fonts"
DOWNLOAD="https://github.com/liberationfonts/liberation-fonts/archive/refs/tags/2.1.0.tar.gz"
DESC="Font family which aims at metric compatibility with Arial, Times New Roman, and Courier New"
REQUIRES="fontconfig mkfontscale "

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/

  install -Dm 644 $SRCDIR/60-liberation.conf $PKG/etc/fonts/conf.d/60-liberation.conf

  mkfinalpkg
}

SHA512SUMS="
aa067dfd877be8b9407879c1ef0830d7dbbdb541761acec38848305f403ce992ba7c6db97d7e648e33fce9b19c42d31ba66c02c21221c8f9f136a5d296d5e424  liberation-fonts-ttf-2.1.0.tar.lz
"
