void-packages/srcpkgs/python-dbus/template

31 lines
1.0 KiB
Bash

# Template file for 'python-dbus'
pkgname=python-dbus
version=1.2.18
revision=3
build_style=gnu-configure
hostmakedepends="pkg-config python"
makedepends="libglib-devel python-devel"
depends="python dbus"
checkdepends="${depends} python-gobject"
short_desc="D-Bus Python2 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=92bdd1e68b45596c833307a5ff4b217ee6929a1502f5341bae28fd120acf7260
lib32disabled=yes
export PYTHON_CPPFLAGS="-I${XBPS_CROSS_BASE}/${py2_inc}"
export PYTHON_EXTRA_LIBS="-L${XBPS_CROSS_BASE}/usr/lib -lpython${py2_ver}"
export PYTHON_VERSION="${py2_ver}"
post_install() {
vcopy dbus_python.egg-info "${py2_sitelib}/dbus_python-${version}-py${py2_ver}.egg-info"
vlicense COPYING
# Conflict with python3-dbus-devel.
rm ${DESTDIR}/usr/include/dbus-1.0/dbus/dbus-python.h \
${DESTDIR}/usr/lib/pkgconfig/dbus-python.pc
}