pkgname=pango pkgver=1.54.0 _pkgver=1.54 pkgrel=1 pkgdesc="A library for layout and rendering of text" arch=('x86_64') url="https://pango.gnome.org/" license=('LGPL') depends=('cairo' 'libxft' 'libthai' 'harfbuzz' 'fribidi') makedepends=('gobject-introspection' 'libxt' 'fontconfig' 'meson' 'ninja' 'help2man') options=('!libtool') source=("https://download.gnome.org/sources/pango/${_pkgver}/${pkgname}-${pkgver}.tar.xz" "https://gitlab.gnome.org/GNOME/pango/-/commit/56174802a73d8855b7497d90f722b37233c6b477.diff") sha256sums=('8a9eed75021ee734d7fc0fdf3a65c3bba51dfefe4ae51a9b414a60c70b2d1ed8' 'e24bb678eb9705c4b287dfa05747ec00e6ddfb5f33d6656e1a6936e291d51d83') prepare() { cd ${pkgname}-${pkgver} #cp pango/pango-features.h pango/pango-features.h.meson #patch -p1 -i ${srcdir}/56174802a73d8855b7497d90f722b37233c6b477.diff } build() { mkdir -p build cd build meson setup ../${pkgname}-${pkgver} \ --prefix=/usr \ --buildtype=release \ --libexecdir=/usr/lib ninja } package() { cd build DESTDIR=${pkgdir} ninja install install -m755 -d ${pkgdir}/etc/pango }