# Maintainer: PktSurf <smlinux@pktsurf.in>
app=pango
version=1.50.14
build=1sml
homepage="https://www.pango.org/"
download="https://download.gnome.org/sources/pango/1.50/pango-$version.tar.xz"
desc="A library for layout and rendering of text"
requires="fribidi libxft harfbuzz"

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

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

build() {
  mkdir -p smbuild && cd smbuild
  meson .. \
    --prefix=/ \
    -Dgtk_doc=false 

  ninja
  DESTDIR="$pkg" ninja install

  cp ../COPYING $pkgdocs

  mkfinalpkg
}

sha512sums="
8177976f90cd2b684ee26f0ff470fa3e3e78cb84dea96a3f7f98c023410850ae38e1f581c383d3db9b7e97f9b194d8eb08ad5b878689abd862a3fe73b1d34910  pango-1.50.14.tar.lz
"