void-packages/srcpkgs/vte3/template

66 lines
1.9 KiB
Bash

# Template file for 'vte3'
pkgname=vte3
version=0.74.2
revision=1
build_style=meson
build_helper="gir"
configure_args="-Db_ndebug=false -Db_lto=false -D_systemd=false
$(vopt_bool gir gir) $(vopt_bool gir vapi) -Dgtk4=true"
hostmakedepends="glib-devel gperf gettext pkg-config
$(vopt_if gir vala)"
makedepends="gnutls-devel gtk4-devel gtk+3-devel pcre2-devel $(vopt_if gir vala-devel)"
short_desc="Terminal widget with improved accessibility and I18N support"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="GPL-3.0-or-later, LGPL-2.1-or-later, LGPL-3.0-or-later"
homepage="https://wiki.gnome.org/Apps/Terminal/VTE"
distfiles="${GNOME_SITE}/vte/${version%.*}/vte-${version}.tar.xz"
checksum=a535fb2a98fea8a2449cd1a02cccf5190131dddff52e715afdace3feb536eae7
# Suppress warnings as errors for NULL format strings (musl libc)
CXXFLAGS="-Wno-error=format="
# Package build options
build_options="gir"
build_options_default="gir"
pre_build() {
export GIR_EXTRA_LIBS_PATH="${wrksrc}/src/.libs"
}
vte3-gtk4_package() {
short_desc+=" - GTK4 version"
pkg_install() {
vmove usr/bin/vte-2.91-gtk4
vmove usr/lib/libvte-2.91-gtk4.so.0
vmove usr/lib/girepository-1.0/Vte-3.91.typelib
}
}
vte3-devel_package() {
depends="libglib-devel gtk+3-devel pango-devel ${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include/vte-2.91
vmove usr/lib/pkgconfig/vte-2.91.pc
vmove usr/lib/libvte-2.91.so
if [ "$build_option_gir" ]; then
vmove usr/share/gir-1.0/Vte-2.91.gir
vmove "usr/share/vala/vapi/vte-2.91.*"
fi
}
}
vte3-gtk4-devel_package() {
depends="libglib-devel gtk4-devel pango-devel vte3-gtk4>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include/vte-2.91-gtk4
vmove usr/lib/libvte-2.91-gtk4.so
vmove usr/lib/pkgconfig/vte-2.91-gtk4.pc
if [ "$build_option_gir" ]; then
vmove usr/share/gir-1.0/Vte-3.91.gir
vmove "usr/share/vala/vapi/vte-2.91-gtk4.*"
fi
}
}