52 lines
1.5 KiB
Bash
52 lines
1.5 KiB
Bash
# Template file for 'gtksourceview4'
|
|
pkgname=gtksourceview4
|
|
version=4.8.4
|
|
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) gettext"
|
|
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"
|
|
changelog="https://gitlab.gnome.org/GNOME/gtksourceview/-/raw/gtksourceview-4-8/NEWS"
|
|
distfiles="${GNOME_SITE}/gtksourceview/${version%.*}/gtksourceview-${version}.tar.xz"
|
|
checksum=7ec9d18fb283d1f84a3a3eff3b7a72b09a10c9c006597b3fbabbb5958420a87d
|
|
|
|
# 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
|
|
}
|
|
}
|