# Maintainer: Daniel Eklöf GRAPHEME_SHAPING=enabled # auto|disabled|enabled RUN_SHAPING=enabled # auto|disabled|enabled pkgname=fcft pkgver=2.5.0 # Don’t forget to update CHANGELOG.md pkgrel=1 pkgdesc="Simple library for font loading and glyph rasterization using FontConfig, FreeType and pixman." arch=('x86_64' 'aarch64') url=https://codeberg.org/dnkl/${pkgname} license=(mit) depends=('freetype2' 'fontconfig' 'pixman') makedepends=('meson' 'ninja' 'scdoc' 'tllist') checkdepends=('check' 'ttf-dejavu') changelog=CHANGELOG.md source=(${pkgname}-${pkgver}.tar.gz::${url}/archive/${pkgver}.tar.gz) sha256sums=('58663c684f04154674c52551daa604618e0bb3db6c62492b06b13768fb4f4b3c') if [[ ${RUN_SHAPING} == enabled ]]; then depends+=('harfbuzz' 'libutf8proc') elif [[ ${GRAPHEME_SHAPING} == enabled ]]; then depends+=('harfbuzz') fi build() { cd ${pkgname} meson \ --prefix=/usr \ --buildtype=release \ -Dgrapheme-shaping=${GRAPHEME_SHAPING} \ -Drun-shaping=${RUN_SHAPING} \ . build ninja -C build } check() { cd ${pkgname} ninja -C build test } package() { cd ${pkgname} DESTDIR="${pkgdir}/" ninja -C build install install -Dm 644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" install -Dm 644 unicode/LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.unicode" }