diff --git a/python/dbus-python/.SRCINFO b/python/dbus-python/.SRCINFO new file mode 100644 index 0000000000..68addb8c8e --- /dev/null +++ b/python/dbus-python/.SRCINFO @@ -0,0 +1,41 @@ +pkgbase = dbus-python + pkgdesc = Python bindings for D-Bus + pkgver = 1.3.2 + pkgrel = 5 + url = https://www.freedesktop.org/wiki/Software/dbus/ + arch = x86_64 + arch = powerpc64le + arch = powerpc64 + arch = powerpc + arch = riscv64 + license = MIT + makedepends = git + makedepends = meson + makedepends = python-pyproject-metadata + makedepends = python-sphinx + makedepends = python-sphinx_rtd_theme + makedepends = python-sphinxcontrib-jquery + makedepends = python-tomli + depends = dbus + depends = glib2 + depends = glibc + depends = python + optdepends = python-gobject: D-Bus services via PyGI + source = git+https://gitlab.freedesktop.org/dbus/dbus-python.git?signed#tag=dbus-python-1.3.2 + validpgpkeys = DA98F25C0871C49A59EAFF2C4DE8FF2A63C7CC90 + b2sums = c1dbfb15103b0ab6309c1db218d01d8710c9101a7761f615aefc1d8e2944389e70cff4c1e709aa660ac1f2458163ceb4c5609aaf630d07ee63d33e19b1d9b575 + +pkgname = python-dbus + provides = dbus-python=1.3.2 + provides = python-dbus-common=1.3.2 + conflicts = dbus-python + conflicts = python-dbus-common + replaces = dbus-python + replaces = python-dbus-common + +pkgname = python-dbus-docs + pkgdesc = Developer documentation for dbus-python + depends = + optdepends = + conflicts = dbus-python-docs + replaces = dbus-python-docs diff --git a/python/dbus-python/.nvchecker.toml b/python/dbus-python/.nvchecker.toml new file mode 100644 index 0000000000..25d12c4005 --- /dev/null +++ b/python/dbus-python/.nvchecker.toml @@ -0,0 +1,4 @@ +[dbus-python] +source = "git" +git = "https://gitlab.freedesktop.org/dbus/dbus-python.git" +prefix = "dbus-python-" diff --git a/python/dbus-python/PKGBUILD b/python/dbus-python/PKGBUILD index 7bbb7ccc0f..1bfac55a46 100644 --- a/python/dbus-python/PKGBUILD +++ b/python/dbus-python/PKGBUILD @@ -3,23 +3,39 @@ # Contributor: Jan de Groot pkgbase=dbus-python -pkgname=(python-dbus python-dbus-docs) +pkgname=( + python-dbus + python-dbus-docs +) pkgver=1.3.2 -pkgrel=4 +pkgrel=5 pkgdesc='Python bindings for D-Bus' arch=(x86_64 powerpc64le powerpc64 powerpc riscv64) url='https://www.freedesktop.org/wiki/Software/dbus/' -license=('MIT') -depends=('dbus' 'glib2' 'glibc' 'python') -makedepends=('git' 'meson' 'python-pyproject-metadata' 'python-sphinx' - 'python-sphinxcontrib-jquery' 'python-sphinx_rtd_theme' 'python-tomli') +license=(MIT) +depends=( + dbus + glib2 + glibc + python +) +makedepends=( + git + meson + python-pyproject-metadata + python-sphinx + python-sphinx_rtd_theme + python-sphinxcontrib-jquery + python-tomli +) optdepends=('python-gobject: D-Bus services via PyGI') source=("git+https://gitlab.freedesktop.org/dbus/$pkgbase.git?signed#tag=$pkgbase-$pkgver") -b2sums=('c1dbfb15103b0ab6309c1db218d01d8710c9101a7761f615aefc1d8e2944389e70cff4c1e709aa660ac1f2458163ceb4c5609aaf630d07ee63d33e19b1d9b575') -validpgpkeys=('DA98F25C0871C49A59EAFF2C4DE8FF2A63C7CC90') # Simon McVittie +b2sums=(c1dbfb15103b0ab6309c1db218d01d8710c9101a7761f615aefc1d8e2944389e70cff4c1e709aa660ac1f2458163ceb4c5609aaf630d07ee63d33e19b1d9b575) +validpgpkeys=(DA98F25C0871C49A59EAFF2C4DE8FF2A63C7CC90) # Simon McVittie build() { - arch-meson $pkgbase build -D doc=true + arch-meson $pkgbase build \ + -D doc=true meson compile -C build # Generate egg-info @@ -31,9 +47,18 @@ check() { } package_python-dbus() { - conflicts=('dbus-python' 'python-dbus-common') - provides=("dbus-python=$pkgver" "python-dbus-common=$pkgver") - replaces=('dbus-python' 'python-dbus-common') + conflicts=( + dbus-python + python-dbus-common + ) + provides=( + "dbus-python=$pkgver" + "python-dbus-common=$pkgver" + ) + replaces=( + dbus-python + python-dbus-common + ) meson install -C build --destdir "$pkgdir" @@ -42,8 +67,8 @@ package_python-dbus() { python -O -m compileall -d /usr/lib "$pkgdir/usr/lib" # Install egg-info and license - install -Dm644 -t "$pkgdir`python -c 'import site; print(site.getsitepackages()[0])'`/dbus_python.egg-info/" "$srcdir/PKG-INFO" - install -Dm644 "$pkgbase/COPYING" "$pkgdir/usr/share/licenses/$pkgname/COPYING" + install -Dm644 -t "$pkgdir$(python -c 'import site; print(site.getsitepackages()[0])')/dbus_python.egg-info/" PKG-INFO + install -Dm644 -t "$pkgdir/usr/share/licenses/$pkgname/" "$pkgbase/COPYING" # Split documentation mkdir -p doc/usr/share @@ -54,10 +79,10 @@ package_python-dbus-docs() { pkgdesc="Developer documentation for dbus-python" depends=() optdepends=() - conflicts=('dbus-python-docs') - replaces=('dbus-python-docs') + conflicts=(dbus-python-docs) + replaces=(dbus-python-docs) mv doc/* "$pkgdir" rm -r "$pkgdir/usr/share/doc/$pkgbase/html/.doctrees" - install -Dm644 "$pkgbase/COPYING" "$pkgdir/usr/share/licenses/$pkgname/COPYING" + install -Dm644 -t "$pkgdir/usr/share/licenses/$pkgname/" "$pkgbase/COPYING" }