# Maintainer: PktSurf <smlinux@pktsurf.in>
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 "

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

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

build() {
  ./configure \
    --prefix="" \
    --disable-static \
    --with-harfbuzz=no

  make
  make install DESTDIR=$pkg

  cp docs/GPLv2.TXT $pkgdocs/

  mkfinalpkg
}

sha512sums="
c04ed27db9b37e4e0cfefc97df9f1923c3d1f9dffe122f09008b47ac1c57e3d0d1f2331a7a5f0ab7dbcffe5ff6ed24976f7537608e5a592a1e9ab5028ac82473  freetype-2.9.tar.lz
"
