# Description: D-Bus Python bindings
# URL: http://freedesktop.org/wiki/Software/DBusBindings
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on: dbus-glib python3-pip python3-wheel

name=dbus-python3
version=1.3.2
release=2
source=(https://dbus.freedesktop.org/releases/dbus-python/dbus-python-$version.tar.gz)

build() {
  cd dbus-python-$version

  autoreconf -vfi

  ./configure --prefix=/usr \
    PYTHON=/usr/bin/python3 \
    PYTHON_EXTRA_LIBS=' '
  make

  make DESTDIR=$PKG install

  /usr/bin/python3 setup.py install --root=$PKG \
    --optimize=2 \
    --skip-build

  find $PKG -name '*.la' -type f -delete
}
