void-packages/srcpkgs/harfbuzz/template

53 lines
1.3 KiB
Bash

# Template file for 'harfbuzz'
pkgname=harfbuzz
version=9.0.0
revision=1
build_style=meson
build_helper="gir qemu"
configure_args="
-Dcairo=enabled
-Ddocs=enabled
-Dfreetype=enabled
-Dglib=enabled
-Dgraphite=enabled
-Dicu=enabled
-Dintrospection=enabled
-Dutilities=enabled"
hostmakedepends="glib-devel pkg-config gtk-doc"
makedepends="cairo-devel graphite-devel icu-devel libxml2"
short_desc="OpenType text shaping engine"
maintainer="Duncaen <duncaen@voidlinux.org>"
license="MIT"
homepage="https://harfbuzz.github.io/"
changelog="https://github.com/harfbuzz/harfbuzz/raw/main/NEWS"
distfiles="https://github.com/harfbuzz/harfbuzz/releases/download/${version}/harfbuzz-${version}.tar.xz"
checksum=a41b272ceeb920c57263ec851604542d9ec85ee3030506d94662067c7b6ab89e
if [ "$XBPS_CHECK_PKGS" ]; then
configure_args+=" -Dtests=enabled"
else
configure_args+=" -Dtests=disabled"
fi
libharfbuzz_package() {
short_desc+=" - runtime library"
pkg_install() {
vmove "usr/lib/*.so.*"
vmove usr/lib/girepository-1.0
vlicense COPYING LICENSE
}
}
harfbuzz-devel_package() {
depends="${makedepends} libharfbuzz>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove usr/lib/cmake
vmove "usr/lib/*.so"
vmove usr/share/gir-1.0
vmove usr/share/gtk-doc
}
}