APP=fontconfig
VERSION=2.13.1
BUILD=1sml
HOMEPAGE="https://www.freedesktop.org/wiki/Software/fontconfig/"
DOWNLOAD="https://www.freedesktop.org/software/fontconfig/release/fontconfig-2.13.1.tar.gz"
DESC="Library for configuring and customizing font access"
REQUIRES="expat json-c freetype "

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

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

  printf "all:\n\ttrue\n\ninstall:\n\ttrue\n\n" > test/Makefile.in

  ./configure \
    --prefix="" \
    --sysconfdir=/etc \
    --localstatedir=/var \
    --bindir=/bin \
    --disable-docs 

  make
  make install DESTDIR=$PKG

  cp COPYING $PKGDOCS/

  mkfinalpkg
}

SHA512SUMS="
67e7ec728dbabc66134a9ab19ee142738d497160826d3ec18eb826e8686150b1e199beeb73ebae366722b11816a59e229bcefd1eac1f38825695ff651a472cec  fontconfig-2.13.1.tar.lz
"
