[arch-commits] Commit in python-pywayland/repos (2 files)

Evangelos Foutras foutrelis at gemini.archlinux.org
Tue Nov 30 21:13:28 UTC 2021


    Date: Tuesday, November 30, 2021 @ 21:13:27
  Author: foutrelis
Revision: 1058879

archrelease: copy trunk to community-staging-x86_64

Added:
  python-pywayland/repos/community-staging-x86_64/
  python-pywayland/repos/community-staging-x86_64/PKGBUILD
    (from rev 1058877, python-pywayland/trunk/PKGBUILD)

----------+
 PKGBUILD |   48 ++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 48 insertions(+)

Copied: python-pywayland/repos/community-staging-x86_64/PKGBUILD (from rev 1058877, python-pywayland/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2021-11-30 21:13:27 UTC (rev 1058879)
@@ -0,0 +1,48 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+
+_name=pywayland
+pkgname=python-pywayland
+pkgver=0.4.7
+pkgrel=2
+pkgdesc="Python bindings for the libwayland library"
+arch=('x86_64')
+url="https://github.com/flacjacket/pywayland"
+license=('Apache')
+depends=('python-cffi' 'wayland')
+makedepends=('python-setuptools' 'wayland-protocols')
+checkdepends=('python-pytest')
+# TODO: remove provides/conflicts/replaces after 2022-01-01
+conflicts=('pywayland')
+provides=('pywayland')
+replaces=('pywayland')
+source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
+sha512sums=('0af88a125264fef4962547b07e3f7ead2752a339bb9049036a30e8b5e9e5942d13f9d2cca4a3e643635b533b8ce1b939c7402a661e8638b4f95f7f48755c696f')
+b2sums=('697ec8119de68fec47b225b35208eca1eb470fd846542e4e872ff8fcf19f2074c7647af895d199acde16fc58f9393a4f4f0347119864c778114cd5b4990f402b')
+
+prepare() {
+  mv -v "${_name}-$pkgver" "$pkgname-$pkgver"
+  cd "$pkgname-$pkgver"
+  mkdir -vp temp
+}
+
+build() {
+  cd "$pkgname-$pkgver"
+  python pywayland/ffi_build.py
+  python -m pywayland.scanner
+  python setup.py build
+}
+
+check() {
+  local _py_ver=$(python -c 'import sys; print(".".join(map(str, sys.version_info[:2])))')
+
+  cd "$pkgname-$pkgver"
+  export PYTHONPATH="build/lib.linux-${CARCH}-${_py_ver}:${PYTHONPATH}"
+  export XDG_RUNTIME_DIR="${PWD}/temp"
+  pytest -v
+}
+
+package() {
+  cd "$pkgname-$pkgver"
+  python setup.py install --optimize=1 --root="${pkgdir}"
+  install -vDm 644 README.rst -t "${pkgdir}/usr/share/doc/${pkgname}"
+}



More information about the arch-commits mailing list