# Template file for 'geany'
pkgname=geany
version=2.1
revision=1
build_style=gnu-configure
configure_args="--enable-vte --enable-gtk3"
hostmakedepends="pkg-config libtool gettext"
makedepends="gtk+3-devel"
depends="hicolor-icon-theme desktop-file-utils"
checkdepends="xvfb-run python3"
short_desc="Fast and lightweight IDE"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="https://www.geany.org"
changelog="https://raw.githubusercontent.com/geany/geany/master/NEWS"
distfiles="https://download.geany.org/geany-${version}.tar.bz2"
checksum=6b96a8844463300c10b9692a0a5edad8236eec9e84342f575f83d4fc89331228
make_check_pre="xvfb-run"
python_version=3

pre_check() {
	# Void sets HOME to /tmp by default
	# Use $PWD to avoid /tmp evaluating to ~
	export HOME="$PWD"
}

geany-devel_package() {
	depends="libglib-devel gtk+3-devel ${sourcepkg}>=${version}_${revision}"
	short_desc+=" - Development files"
	pkg_install() {
		vmove usr/include
		vmove usr/lib/pkgconfig
		vmove "usr/lib/*.so"
	}
}
