36 lines
1.1 KiB
Bash
36 lines
1.1 KiB
Bash
# Template file for 'gtksourceview'
|
|
pkgname=gtksourceview
|
|
version=3.22.1
|
|
revision=1
|
|
build_style=gnu-configure
|
|
configure_args="--disable-static $(vopt_enable gir introspection)"
|
|
hostmakedepends="pkg-config intltool gtk+3-devel glib-devel $(vopt_if gir gobject-introspection)"
|
|
makedepends="gtk+3-devel libxml2-devel"
|
|
short_desc="Text widget that extends GTK+3 GtkTextView widget"
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
|
homepage="http://www.gnome.org"
|
|
license="GPL-2"
|
|
distfiles="${GNOME_SITE}/$pkgname/${version%.*}/${pkgname}-${version}.tar.xz"
|
|
checksum=a05b3f8bc866db4abad16528fc166ee31e9a2c90a933a99476bc474086a3b6af
|
|
|
|
# Package build options
|
|
build_options="gir"
|
|
|
|
# Disable gir for cross builds.
|
|
if [ -z "$CROSS_BUILD" ]; then
|
|
build_options_default="gir"
|
|
fi
|
|
|
|
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
|
|
vmove usr/share/gtk-doc
|
|
}
|
|
}
|