51 lines
1.4 KiB
Bash
51 lines
1.4 KiB
Bash
# Template file for 'gtksourceview4'
|
|
pkgname=gtksourceview4
|
|
version=4.8.2
|
|
revision=1
|
|
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=842de7e5cb52000fd810e4be39cd9fe29ffa87477f15da85c18f7b82d45637cc
|
|
|
|
# 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
|
|
}
|
|
}
|