void-packages/srcpkgs/gtksourceview/template
2014-04-15 18:15:50 +02:00

44 lines
1.2 KiB
Text

# Template file for 'gtksourceview'
pkgname=gtksourceview
version=3.12.1
revision=1
build_style=gnu-configure
configure_args="--disable-static"
hostmakedepends="pkg-config intltool gtk+3-devel"
makedepends="gtk+3-devel libxml2-devel"
short_desc="Text widget that extends GTK+3 GtkTextView widget"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://www.gnome.org"
license="GPL-2"
distfiles="${GNOME_SITE}/$pkgname/${version%.*}/${pkgname}-${version}.tar.xz"
checksum=008cc0758197aeb4843fc4d1220cbe1586a419455b8ef2efdc9d05a2e6f6bd3e
# Package build options
build_options="gir"
desc_option_gir="Enable support for building gobject introspection data"
# Disable gir for cross builds.
if [ -z "$CROSS_BUILD" ]; then
build_options_default="gir"
fi
if [ "$build_option_gir" ]; then
configure_args+=" --enable-introspection"
makedepends+=" gobject-introspection"
else
configure_args+=" --disable-introspection"
fi
gtksourceview-devel_package() {
depends="gtk+3-devel libxml2-devel ${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
}
}