diff --git a/srcpkgs/python3-dbus/template b/srcpkgs/python3-dbus/template index 883367cb00e298..0bc990454b452b 100644 --- a/srcpkgs/python3-dbus/template +++ b/srcpkgs/python3-dbus/template @@ -1,26 +1,30 @@ # Template file for 'python3-dbus' pkgname=python3-dbus -version=1.3.2 -revision=5 -build_style=gnu-configure +version=1.5.1 +revision=1 +build_style=meson +configure_args="-Dpython=python${py3_ver}" hostmakedepends="pkg-config python3-packaging-bootstrap" -makedepends="libglib-devel python3-devel" +makedepends="dbus-devel libglib-devel python3-devel" depends="python3 dbus" checkdepends="${depends} python3-gobject" short_desc="D-Bus Python3 bindings" maintainer="Orphaned " -license="MIT" +license="MIT, AFL-2.1 OR GPL-2.0-or-later" homepage="https://www.freedesktop.org/wiki/Software/DBusBindings" -distfiles="https://dbus.freedesktop.org/releases/dbus-python/dbus-python-${version}.tar.gz" -checksum=ad67819308618b5069537be237f8e68ca1c7fcc95ee4a121fe6845b1418248f8 +changelog="https://gitlab.freedesktop.org/dbus/dbus-python/-/raw/main/NEWS" +distfiles="${PYPI_SITE}/d/dbus-python/dbus_python-${version}.tar.gz" +checksum=57423cf87d09b7d084f420b55b737fe654c33339b06df77945620d97795c6ac4 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}" +if [ "$XBPS_CHECK_PKGS" ]; then + configure_args+=" -Dtests=enabled" +else + configure_args+=" -Dtests=disabled" +fi post_install() { - vcopy dbus_python.egg-info "${py3_sitelib}/dbus_python-${version}-py${py3_ver}.egg-info" - + vinstall PKG-INFO 644 ${py3_sitelib} dbus_python-${version}-py${py3_ver}.egg-info vlicense COPYING }