void-packages/srcpkgs/gtksourceview4/template
2019-02-23 20:32:49 +01:00

59 lines
1.6 KiB
Bash

# Template file for 'gtksourceview4'
pkgname=gtksourceview4
version=4.0.3
revision=3
wrksrc="gtksourceview-${version}"
build_style=gnu-configure
build_helper="gir"
configure_args="--enable-glade-catalog $(vopt_enable gir introspection)
$(vopt_enable vala)"
hostmakedepends="gtk+3-devel glib-devel itstool libxslt pkg-config
$(vopt_if vala vala)"
makedepends="glade3-devel gtk+3-devel libglib-devel libxml2-devel
$(vopt_if vala vala)"
short_desc="Text widget that extends GTK+ GtkTextView widget"
maintainer="Rasmus Thomsen <rasmus.thomsen@protonmail.com>"
license="GPL-2.0-or-later"
homepage="https://wiki.gnome.org/Projects/GtkSourceView"
distfiles="${GNOME_SITE}/gtksourceview/${version%.*}/gtksourceview-${version}.tar.xz"
checksum=3d55a7b82841d96bf414ced2e1e912d4881c9ba2f7b74f0ff8aad636087f9d73
# Package build options
build_options="gir vala"
if [ -z "$CROSS_BUILD" ]; then
# gtk-doc generation is broken on cross
configure_args+=" --enable-gtk-doc"
hostmakedepends+=" gtk-doc"
fi
case "$XBPS_TARGET_MACHINE" in
i686-musl|x86_64-musl) build_options_default+=" gir vala" ;;
*-musl) ;;
*) build_options_default+=" gir vala" ;;
esac
do_check() {
# Needs access to X
:
}
gtksourceview4-devel_package() {
depends="gtk+3-devel libglib-devel libxml2-devel ${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
vmove usr/share/glade
if [ "$build_option_vala" ]; then
vmove usr/share/vala
fi
if [ "$build_option_gir" ]; then
vmove usr/share/gir-1.0
fi
if [ -z "$CROSS_BUILD" ]; then
vmove usr/share/gtk-doc
fi
}
}