pkgname=harfbuzz pkgver=10.1.0 pkgrel=1 pkgdesc="OpenType text shaping engine" arch=('x86_64') url="https://harfbuzz.github.io" license=('MIT') depends=('glib2' 'glibc' 'graphite2' 'icu') makedepends=('freetype2' 'gobject-introspection' 'meson' 'python-setuptools') source=(https://github.com/harfbuzz/harfbuzz/releases/download/${pkgver}/${pkgname}-${pkgver}.tar.xz) sha256sums=(6ce3520f2d089a33cef0fc48321334b8e0b72141f6a763719aaaecd2779ecb82) build() { cd ${pkgname}-${pkgver} local meson_args=( -Dgraphite2=enabled ) CFLAGS=${CFLAGS/-fexceptions/} CXXFLAGS=${CXXFLAGS/-fexceptions/} ${meson_options} ${meson_args[@]} ${meson_build} } package() { cd ${pkgname}-${pkgver} ${meson_install} ${pkgdir} }