52 lines
1.5 KiB
Bash
52 lines
1.5 KiB
Bash
# Template file for 'gtksourceview4'
|
|
pkgname=gtksourceview4
|
|
version=4.8.0
|
|
revision=1
|
|
wrksrc="gtksourceview-${version}"
|
|
build_style=meson
|
|
build_helper="gir"
|
|
configure_args="-Dglade_catalog=true $(vopt_bool gir gir)
|
|
$(vopt_bool gir vapi) $(vopt_bool gtk_doc gtk_doc)"
|
|
hostmakedepends="gtk+3-devel glib-devel itstool libxslt pkg-config
|
|
$(vopt_if gir vala) $(vopt_if gtk_doc gtk-doc)"
|
|
makedepends="glade3-devel gtk+3-devel libglib-devel libxml2-devel
|
|
$(vopt_if gir vala)"
|
|
short_desc="Text widget that extends GTK+ GtkTextView widget"
|
|
maintainer="Enno Boland <gottox@voidlinux.org>"
|
|
license="GPL-2.0-or-later"
|
|
homepage="https://wiki.gnome.org/Projects/GtkSourceView"
|
|
distfiles="${GNOME_SITE}/gtksourceview/${version%.*}/gtksourceview-${version}.tar.xz"
|
|
checksum=00a19121500cedf1bae97f35af865d839841fd785d9facf188498e13975b4e1a
|
|
|
|
# Package build options
|
|
build_options="gir gtk_doc"
|
|
desc_option_gtk_doc="Build API docs via gtk-doc"
|
|
build_options_default="gir"
|
|
|
|
if [ -z "$CROSS_BUILD" ]; then
|
|
build_options_default+=" gtk_doc"
|
|
fi
|
|
|
|
# Needs X
|
|
do_check() {
|
|
:
|
|
}
|
|
|
|
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_gtk_doc" ]; then
|
|
vmove usr/share/gtk-doc
|
|
fi
|
|
if [ "$build_option_gir" ]; then
|
|
vmove usr/share/gir-1.0
|
|
vmove usr/share/vala
|
|
fi
|
|
}
|
|
}
|