void-packages/srcpkgs/libdazzle/template
2022-01-21 08:57:22 +01:00

40 lines
1.1 KiB
Bash

# Template file for 'libdazzle'
pkgname=libdazzle
version=3.42.0
revision=1
build_style=meson
build_helper="gir"
configure_args="-Denable_gtk_doc=false
$(vopt_bool gir with_vapi)
$(vopt_bool gir with_introspection)"
hostmakedepends="glib-devel pkg-config $(vopt_if gir vala)"
makedepends="gtk+3-devel libglib-devel"
checkdepends="xvfb-run"
short_desc="Library to delight your users with fancy features"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="GPL-3.0-or-later"
homepage="https://gitlab.gnome.org/GNOME/libdazzle"
changelog="https://gitlab.gnome.org/GNOME/libdazzle/-/raw/${version}/NEWS"
distfiles="${GNOME_SITE}/libdazzle/${version%.*}/libdazzle-${version}.tar.xz"
checksum=eae67a3b3d9cce408ee9ec0ab6adecb83e52eb53f9bc93713f4df1e84da16925
do_check() {
xvfb-run ninja -C build test
}
build_options="gir"
build_options_default="gir"
libdazzle-devel_package() {
depends="${sourcepkg}-${version}_${revision} gtk+3-devel"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
if [ "$build_option_gir" ]; then
vmove usr/share/gir-1.0
vmove usr/share/vala
fi
}
}