python-dbus: update to 1.2.4

This commit is contained in:
Alessio Sergi 2017-06-04 16:18:41 +02:00
parent 37e8511a73
commit 08188a8534

View File

@ -1,7 +1,7 @@
# Template file for 'python-dbus'
pkgname=python-dbus
version=1.2.0
revision=8
version=1.2.4
revision=1
lib32disabled=yes
wrksrc="dbus-python-${version}"
build_style=gnu-configure
@ -12,9 +12,9 @@ pycompile_module="dbus"
short_desc="D-Bus Python2 bindings"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="GPL-2, LGPL-2.1"
homepage="http://www.freedesktop.org/wiki/Software/DBusBindings"
distfiles="http://dbus.freedesktop.org/releases/dbus-python/dbus-python-${version}.tar.gz"
checksum=e12c6c8b2bf3a9302f75166952cbe41d6b38c3441bbc6767dbd498942316c6df
homepage="https://www.freedesktop.org/wiki/Software/DBusBindings"
distfiles="https://dbus.freedesktop.org/releases/dbus-python/dbus-python-${version}.tar.gz"
checksum=e2f1d6871f74fba23652e51d10873e54f71adab0525833c19bad9e99b1b2f9cc
pre_configure() {
mkdir -p dbus-${py2_ver}
@ -25,13 +25,16 @@ do_configure() {
for pyver in $py2_ver $py3_ver; do
if [ "$pyver" != "$py2_ver" ]; then
pyinc="$py3_inc"
pyabi="m"
else
pyinc="$py2_inc"
fi
cd ${wrksrc}/dbus-${pyver}
sed -i "s,PYTHON_INCLUDES=.*,PYTHON_INCLUDES=-I${XBPS_CROSS_BASE}/${pyinc},g" configure
env PYTHON=python${pyver} ./configure ${configure_args}
export PYTHON_INCLUDES="-I${XBPS_CROSS_BASE}/${pyinc}"
export PYTHON_LIBS="-L${XBPS_CROSS_BASE}/usr/lib -lpython${pyver}${pyabi}"
export PYTHON="python${pyver}"
./configure ${configure_args}
done
}
do_build() {