# Template file for 'python3-dbus'
pkgname=python3-dbus
version=1.3.2
revision=4
build_style=gnu-configure
hostmakedepends="pkg-config python3 python3-packaging-bootstrap"
makedepends="libglib-devel python3-devel"
depends="python3 dbus"
checkdepends="${depends} python3-gobject"
short_desc="D-Bus Python3 bindings"
maintainer="Orphaned <orphan@voidlinux.org>"
license="MIT"
homepage="https://www.freedesktop.org/wiki/Software/DBusBindings"
distfiles="https://dbus.freedesktop.org/releases/dbus-python/dbus-python-${version}.tar.gz"
checksum=ad67819308618b5069537be237f8e68ca1c7fcc95ee4a121fe6845b1418248f8
lib32disabled=yes

export PYTHON_CPPFLAGS="-I${XBPS_CROSS_BASE}/${py3_inc}"
export PYTHON_EXTRA_LIBS="-L${XBPS_CROSS_BASE}/usr/lib -lpython${py3_ver}${py3_abiver}"

post_install() {
	vcopy dbus_python.egg-info "${py3_sitelib}/dbus_python-${version}-py${py3_ver}.egg-info"

	vlicense COPYING
}

python3-dbus-devel_package() {
	depends="python3-devel python3-dbus>=${version}_${revision}"
	short_desc+=" - development files"
	pkg_install() {
		vmove usr/include
		vmove usr/lib/pkgconfig
	}
}
