# Maintainer: PktSurf <smlinux@pktsurf.in>
app=freetype
version=2.13.0
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="
c8056a7597fa91a4fbbf8231aa92d8c92cdfc443ddffe5f7925ceb4339c401642f34ddb94c0c3bc8e8e64a7948dc11c07b3d0f1d969e94e504f7eec3d439e794  freetype-2.13.0.tar.lz
"