app=freetype
version=2.9
build=1sml
homepage="https://www.freetype.org/"
download="https://downloads.sourceforge.net/freetype/freetype-$version.tar.bz2"
desc="Font rasterization library"
requires="bzip2 zlib libpng "

build() {
  mkandenterbuilddir
  rm -rf $app-$version

  tar xf $srcdir/$app-$version.tar.?z*
  cd $app-$version
  fixbuilddirpermissions

  ./configure \
    --prefix="" \
    --disable-static \
    --with-harfbuzz=no

  make
  make install DESTDIR=$pkg

  cp docs/GPLv2.TXT $pkgdocs/

  mkfinalpkg
}

sha512sums="
02f0f4211f9cee5b5e46ebe61190482fca5b41bc26be06fcf0d2d717e9fb119229308398c420eeea476fa2511ca2d52948f1a3242efad30ca82ed0b07cd50e3a  freetype-2.9.tar.gz
"
