# fcft - Font loading and glyph rasterisation
# Generated from manifest.tsv by gen-ports.py. Edit the manifest, not this file,
# unless the package needs something the template cannot express - in which case
# drop a `recipe.local` beside it and it will be preserved.
name=fcft
version=3.3.1
release=1
desc="Font loading and glyph rasterisation"
url="https://codeberg.org/dnkl/fcft"
license="MIT"
depend="glibc freetype fontconfig pixman harfbuzz utf8proc"
makedepend="meson ninja"
source="https://codeberg.org/dnkl/fcft/archive/3.3.1.tar.gz"
sha256="SKIP"

build() {
	cd "fcft"
	meson setup build \
		--prefix=/usr \
		--libdir=/usr/lib \
		--sysconfdir=/etc \
		--localstatedir=/var \
		--buildtype=release \
		--wrap-mode=nodownload \
		-Db_lto=true
	ninja -C build -j"$JOBS"
}

package() {
	cd "fcft"
	DESTDIR="$pkgdir" ninja -C build install
}
