void-packages/srcpkgs/gtksourceview2/template

37 lines
996 B
Bash

# Template file for 'gtksourceview2'
pkgname=gtksourceview2
version=2.10.5
revision=7
wrksrc="gtksourceview-${version}"
build_style=gnu-configure
configure_args="--disable-static"
hostmakedepends="pkg-config intltool glib-devel"
makedepends="gtk+-devel libxml2-devel"
short_desc="Text widget that extends GTK+ GtkTextView widget"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="http://www.gnome.org"
distfiles="${GNOME_SITE}/gtksourceview/2.10/gtksourceview-${version}.tar.bz2"
checksum=c585773743b1df8a04b1be7f7d90eecdf22681490d6810be54c81a7ae152191e
# convert.py:178
python_version=2
post_patch() {
vsed -i -e 's/DATADIRNAME=lib/DATADIRNAME=share/' configure
}
do_check() {
: #requires xserver
}
gtksourceview2-devel_package() {
depends="gtk+-devel libxml2-devel ${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove usr/share/gtk-doc
vmove "usr/lib/*.so"
}
}