# Template file for 'geany'
pkgname=geany
version=1.38
revision=1
build_style=gnu-configure
configure_args="--enable-vte --enable-gtk3"
hostmakedepends="automake gettext-devel glib-devel libtool pkg-config intltool
 python3"
makedepends="gtk+3-devel"
depends="hicolor-icon-theme desktop-file-utils"
short_desc="Fast and lightweight IDE"
maintainer="Benjamín Albiñana <benalb@gmail.com>"
license="GPL-2.0-or-later"
homepage="https://www.geany.org"
changelog="https://raw.githubusercontent.com/geany/geany/master/NEWS"
distfiles="https://download.${pkgname}.org/${pkgname}-${version}.tar.bz2"
checksum=abff176e4d48bea35ee53037c49c82f90b6d4c23e69aed6e4a5ca8ccd3aad546
python_version=3

pre_configure() {
	autoreconf -fi
}

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"
	}
}
