void-packages/srcpkgs/gtksourceview/template
2019-04-28 03:12:34 +02:00

41 lines
1.1 KiB
Bash

# Template file for 'gtksourceview'
pkgname=gtksourceview
version=3.24.10
revision=2
build_style=gnu-configure
build_helper="gir"
configure_args="--disable-static $(vopt_enable gir introspection)"
hostmakedepends="pkg-config intltool gtk+3-devel glib-devel $(vopt_if vala vala)"
makedepends="gtk+3-devel libxml2-devel vala-devel"
short_desc="Text widget that extends GTK+3 GtkTextView widget"
maintainer="Juan RP <xtraeme@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="https://wiki.gnome.org/Projects/GtkSourceView"
distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
checksum=ab5406cdd0bdcf66afcd52b1e048a2f43c0f3ab391644ee30d9ac419b93cd59b
# Package build options
build_options="gir vala"
build_options_default="gir vala"
do_check() {
# Needs X
:
}
gtksourceview-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 [ "$build_option_vala" ]; then
vmove usr/share/vala
fi
vmove usr/share/gtk-doc
}
}