APP=ttf-indic-fonts
VERSION=0.5.14
BUILD=1sml
HOMEPAGE=http://archive.ubuntu.com/ubuntu/pool/main/t/ttf-indic-fonts/""
DOWNLOAD="http://archive.ubuntu.com/ubuntu/pool/main/t/ttf-indic-fonts/ttf-indic-fonts_0.5.14ubuntu1.tar.gz"
DESC="TTF fonts for Indic scripts"
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/

  mkdir -p $PKG/etc/fonts/conf.avail
  find . -name "*.conf" -exec cp -a {} $PKG/etc/fonts/conf.avail \;

  mkdir -p $PKG/etc/fonts/conf.d
  ( cd $PKG/etc/fonts/conf.d
    for file in ../conf.avail/*.conf ; do
      ln -sf $file .
    done
  )

  find . -name "*.copyright" -exec cp -a {} $PKGDOCS/ \;

  mkfinalpkg
}

SHA512SUMS="
c30ac90f26d90a874e75a2ffb74d0126821ad192d9a1edf1b7c0944fe5423de87da0141dfbf738a41b9a7ce8fa8ea7a813ee1ae74c7f5a4d04a6f0769e17dea1  ttf-indic-fonts-0.5.14.tar.xz
"
