50 lines
1.4 KiB
Bash
50 lines
1.4 KiB
Bash
|
# Template file for 'gtksourceview4'
|
||
|
pkgname=gtksourceview4
|
||
|
version=4.0.2
|
||
|
revision=1
|
||
|
wrksrc="gtksourceview-${version}"
|
||
|
build_style=gnu-configure
|
||
|
configure_args="$(vopt_enable gir introspection)"
|
||
|
hostmakedepends="gtk+3-devel glib-devel itstool libxslt pkg-config
|
||
|
$(vopt_if gir "gobject-introspection")"
|
||
|
makedepends="gtk+3-devel libgladeui3 libglib-devel libxml2-devel vala-devel"
|
||
|
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=15829fc728f74e2005e2fc65c2aada4b223f3b361b2200b7e02ff7a9014b5fac
|
||
|
|
||
|
# Package build options
|
||
|
build_options="gir"
|
||
|
|
||
|
# Disable gir for cross builds.
|
||
|
if [ -z "$CROSS_BUILD" ]; then
|
||
|
# gtk-doc generation is broken on cross
|
||
|
configure_args+=" --enable-gtk-doc"
|
||
|
hostmakedepends+=" gtk-doc"
|
||
|
|
||
|
build_options_default="gir"
|
||
|
fi
|
||
|
|
||
|
do_check() {
|
||
|
# Needs access to X
|
||
|
:
|
||
|
}
|
||
|
|
||
|
gtksourceview4-devel_package() {
|
||
|
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
|
||
|
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
|
||
|
fi
|
||
|
if [ -z "$CROSS_BUILD" ]; then
|
||
|
vmove usr/share/gtk-doc
|
||
|
fi
|
||
|
}
|
||
|
}
|