pkgname=python-dbus-python pkgver=1.3.2 pkgrel=1 pkgdesc="Python bindings for D-Bus" arch=('x86_64') url="https://www.freedesktop.org/wiki/Software/dbus" license=('MIT') depends=('dbus' 'glib2' 'glibc' 'python') makedepends=('meson') source=(https://gitlab.freedesktop.org/dbus/dbus-python/-/archive/${pkgname#*-}-${pkgver}/dbus-${pkgname#}-${pkgver}.tar.gz) sha256sums=(c9927892c2d94338d6e9c1d6d8f12fb17751a2648d18d202f29227c0baa42a6b) build() { cd dbus-${pkgname#}-${pkgver} ${meson_options} ${meson_args[@]} ${meson_build} } package() { cd dbus-${pkgname#}-${pkgver} ${meson_install} ${pkgdir} # Compile Python bytecode python3 -m compileall -d /usr/lib64 ${pkgdir}/usr/lib64 python3 -O -m compileall -d /usr/lib64 ${pkgdir}/usr/lib64 }