# Template file for 'libtimezonemap'
pkgname=libtimezonemap
version=0.4.6
revision=2
build_helper=gir
build_style=gnu-configure
hostmakedepends="gobject-introspection automake libtool pkg-config"
makedepends="gobject-introspection gtk+3-devel glib-devel cairo-devel
 json-glib-devel libsoup3-devel"
short_desc="GTK+3 timezone map widget"
maintainer="Đoàn Trần Công Danh <congdanhqx@gmail.com>"
license="GPL-2.0-or-later"
homepage="https://launchpad.net/timezonemap"
distfiles="${DEBIAN_SITE}/main/libt/libtimezonemap/libtimezonemap_${version}.orig.tar.gz"
checksum=0d634cc2476d8f57d1ee1864bd4f442180ae4bf040a9ae4bf73b66bbd85d7195

pre_configure() {
	NOCONFIGURE=1 autoreconf -fi
}

libtimezonemap-devel_package() {
	depends="${sourcepkg}>=${version}_${revision} json-glib-devel gtk+3-devel"
	short_desc+=" - development files"
	pkg_install() {
		vmove usr/include
		vmove usr/lib/pkgconfig
		vmove "usr/lib/*.so"
		vmove usr/share/gir-1.0
	}
}
