New package: gtksourceview4-4.0.2

This commit is contained in:
Rasmus Thomsen 2018-09-05 15:33:56 +02:00 committed by maxice8
parent 34ee1c5c2c
commit 37f434ffc0
No known key found for this signature in database
GPG Key ID: 543B9D4F4299F06B
3 changed files with 51 additions and 0 deletions

View File

@ -3413,3 +3413,4 @@ libKF5Syndication.so.5 syndication-18.08.0_1
liblqr-1.so.0 liblqr-0.4.2_1
libmozjs-60.so mozjs60-60.0.2_1
libmozjs-60.so.0 mozjs60-60.0.2_1
libgtksourceview-4.so.0 gtksourceview4-4.0.2_1

View File

@ -0,0 +1 @@
gtksourceview4

View File

@ -0,0 +1,49 @@
# 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
}
}