void-packages/srcpkgs/dbus-python/template

40 lines
1.1 KiB
Text
Raw Normal View History

# Template file for 'dbus-python'
pkgname=dbus-python
version=1.2.0
revision=3
lib32disabled=yes
build_style=gnu-configure
hostmakedepends="pkg-config python-devel"
makedepends="glib-devel dbus-glib-devel python-devel"
depends="python"
pycompile_module="dbus"
short_desc="D-Bus Python bindings"
maintainer="Juan RP <xtraeme@gmail.com>"
2011-10-25 13:59:23 +00:00
license="GPL-2, LGPL-2.1"
2012-06-11 21:05:40 +00:00
homepage="http://www.freedesktop.org/wiki/Software/DBusBindings"
distfiles="http://dbus.freedesktop.org/releases/$pkgname/$pkgname-$version.tar.gz"
checksum=e12c6c8b2bf3a9302f75166952cbe41d6b38c3441bbc6767dbd498942316c6df
do_configure() {
if [ "$CROSS_BUILD" ]; then
# create a python-config wrapper to fake --includes
install -m755 ${XBPS_SRCPKGDIR}/py2cairo/files/python-config ${wrksrc}
export PATH=${wrksrc}:$PATH
fi
env PYTHON=python ./configure ${configure_args}
}
post_install() {
2011-10-25 13:59:23 +00:00
rm -rf ${DESTDIR}/usr/share/doc
}
dbus-python-devel_package() {
lib32disabled=yes
depends="python-devel ${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
}
}