# Template file for 'pluma'
pkgname=pluma
version=1.20.4
revision=1
build_style=gnu-configure
pycompile_dirs="usr/lib/pluma/plugins"
hostmakedepends="gobject-introspection mate-common
 automake libtool"
makedepends="enchant2-devel gtksourceview-devel iso-codes libSM-devel
 libpeas-devel libsoup-devel mate-desktop-devel"
depends="desktop-file-utils iso-codes zenity mate-desktop"
short_desc="Powerful text editor for MATE"
maintainer="Juan RP <xtraeme@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="https://mate-desktop.org"
distfiles="https://pub.mate-desktop.org/releases/${version%.*}/${pkgname}-${version}.tar.xz"
checksum=fffd1ad0309c058ebd364ea0185d5dbbada2a9cde3d580da528b226c7ca9ab61
nocross="gobject-introspection from libpeas"

pre_configure() {
	sed -i 's/, enchant/, enchant-2/' configure.ac
	autoreconf -fi
}

pluma-devel_package() {
	depends="${sourcepkg}-${version}_${revision} gtksourceview-devel libpeas-devel"
	short_desc+=" - development files"
	pkg_install() {
		vmove usr/include
		vmove usr/lib/pkgconfig
		vmove usr/share/gtk-doc
		vmove usr/share/gir-1.0
	}
}