# Maintainer: PktSurf <smlinux@pktsurf.in>
app=pango
version=1.50.3
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="
45574a574fc435be092df488caad05bc0cf0d1ed1713548c4ee7d15a174c1656e2cede319bf49fc9beb9820bbfbaf59d36eb126ac9d69e13bce9d1f215944d80  pango-1.50.3.tar.lz
"
