# Contributor: Leo # Maintainer: Natanael Copa pkgname=pango pkgver=1.44.7 pkgrel=1 pkgdesc="A library for layout and rendering of text" options="!check" # Some tests fail url="https://www.pango.org/" arch="all" license="LGPL-2.1-or-later" depends_dev="pango-tools=$pkgver-r$pkgrel" makedepends="meson cairo-dev expat-dev gobject-introspection-dev help2man fontconfig-dev glib-dev harfbuzz-dev libxft-dev fribidi-dev" install="$pkgname.pre-deinstall" triggers="$pkgname.trigger=/usr/lib/pango/*/modules" subpackages="$pkgname-dev $pkgname-doc $pkgname-tools" source="https://download.gnome.org/sources/pango/${pkgver%.*}/pango-$pkgver.tar.xz fix-include-hb.patch " # secfixes: # 1.44.1-r0: # - CVE-2019-1010238 build() { cd "$srcdir"/$pkgname-$pkgver meson \ --prefix=/usr \ -Dintrospection=true \ -Dgtk_doc=false \ build ninja -C build } check() { cd "$builddir" ninja -C build test } package() { cd "$srcdir"/$pkgname-$pkgver mkdir -p "$pkgdir"/etc/pango DESTDIR="$pkgdir" ninja -C build install rm -rf "$pkgdir"/usr/share/installed-tests rm -rf "$pkgdir"/usr/libexec/installed-tests } tools() { pkgdesc="$pkgdesc (tools)" mkdir -p "$subpkgdir"/usr/bin mv "$pkgdir"/usr/bin/* "$subpkgdir"/usr/bin } sha512sums="6e0a3d5cd32c209fd71a2ce5f705a60db318c2133bcca07360a047a73892f642a1661c1f0fb90353fc43e75336dfc22909bf4969f1bd03324c9689344af08350 pango-1.44.7.tar.xz 0db43f91c7da15cb90d6e5bea18a4cf3f2afe7c11979eff60ce61e84a287f404114d4250cb03bdc48323af84ec2c578f3a7ee830d1d965f203d5e1979f6360fa fix-include-hb.patch"