void-packages/srcpkgs/template-glib/template
2018-09-06 21:36:22 -03:00

37 lines
1.2 KiB
Bash

# Template file for 'template-glib'
pkgname=template-glib
version=3.30.0
revision=1
configure_args="-Denable_gtk_doc=false -Dwith_vapi=$(vopt_if gir true false)
-Dwith_introspection=$(vopt_if gir true false)"
build_style=meson
hostmakedepends="pkg-config $(vopt_if gir 'gobject-introspection vala') glib-devel flex"
makedepends="libglib-devel"
short_desc="Supports calling into GObject Introspection from templates"
maintainer="Rasmus Thomsen <rasmus.thomsen@protonmail.com>"
license="GPL-3.0-or-later"
homepage="https://gitlab.gnome.org/GNOME/template-glib"
distfiles="${GNOME_SITE}/template-glib/${version%.*}/template-glib-${version}.tar.xz"
checksum=cf690d391bfc71036e31867df6da90315a3db83f739a8657f580b941b96e3649
nocross="hard-requires gobject-introspection"
build_options="gir"
if [ -z "$CROSS_BUILD" ]; then
build_options_default+=" gir"
fi
template-glib-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
vmove usr/lib/girepository-1.0
fi
}
}