diff options
Diffstat (limited to 'main/py3-dbus/APKBUILD')
-rw-r--r-- | main/py3-dbus/APKBUILD | 38 |
1 files changed, 16 insertions, 22 deletions
diff --git a/main/py3-dbus/APKBUILD b/main/py3-dbus/APKBUILD index 0be132b0043..6a744492b60 100644 --- a/main/py3-dbus/APKBUILD +++ b/main/py3-dbus/APKBUILD @@ -2,45 +2,39 @@ # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=py3-dbus _pkgname=dbus-python -pkgver=1.2.18 -pkgrel=2 +pkgver=1.3.2 +pkgrel=5 pkgdesc="Python3 bindings for DBUS" -url="http://www.freedesktop.org/wiki/Software/DBusBindings" +url="https://www.freedesktop.org/wiki/Software/DBusBindings" arch="all" license="MIT" depends="python3" depends_dev="py3-dbus" -makedepends="dbus-glib-dev python3-dev py3-sphinx py3-sphinx_rtd_theme" +makedepends="dbus-glib-dev python3-dev meson" checkdepends="bash dbus py3-gobject3 py3-tappy" -subpackages="$pkgname-dev $pkgname-doc" +subpackages="$pkgname-dev" source="https://dbus.freedesktop.org/releases/dbus-python/$_pkgname-$pkgver.tar.gz" - builddir="$srcdir/$_pkgname-$pkgver" -replaces="py-dbus" # Backwards compatibility -provides="py-dbus=$pkgver-r$pkgrel" # Backwards compatibility - - build() { - python3 setup.py build - ./configure \ - --build=$CBUILD \ - --host=$CHOST \ - --prefix=/usr \ - --enable-documentation \ - PYTHON_VERSION=3 - make + abuild-meson \ + -Dtests="$(want_check && echo true || echo false)" \ + . output + meson compile -C output } check() { - make check + meson test --no-rebuild --print-errorlogs -C output } package() { - python3 setup.py install --skip-build --prefix=/usr --root="$pkgdir" - make DESTDIR="$pkgdir" install + DESTDIR="$pkgdir" meson install --no-rebuild -C output + + local pyminor="$(python3 -c 'import sys; print("%i" % sys.version_info.minor)')" + + mv dbus_python.egg-info/ "$pkgdir"/usr/lib/python3.$pyminor/site-packages/dbus_python-$pkgver-py3.$pyminor.egg-info/ } sha512sums=" -72f422c59637392bd78b741b66dff2afadcc706452c3e82fdc14b1dc052a0c5cb8a85e2758d18c5cbdc08004419a0b3c16b67b99688d96307084403e72585900 dbus-python-1.2.18.tar.gz +9b2885c9c2914142c72487f766b1cdd28a255d9f5a87eaf8f4eb420c6e096a77f210ac5a4fac9843c6531974872880cc28b7e45940e198856e984dcc0715519a dbus-python-1.3.2.tar.gz " |