1 # Maintainer: Filipe LaĆns (FFY00) <lains@archlinux.org>
3 pkgname=python-libevdev
7 url='https://gitlab.freedesktop.org/libevdev/python-libevdev'
9 pkgdesc='Python wrapper for libevdev'
10 depends=('python' 'libevdev')
11 makedepends=('python-setuptools' 'python-sphinx' 'python-sphinx_rtd_theme')
12 checkdepends=('python-pytest' 'python-py' 'python-pluggy')
13 source=("$url/-/archive/$pkgver/$pkgname-$pkgver.tar.gz")
14 sha512sums=('224e2d18915f08d9f02e32845968e0e2eac531ad7f4efe5401de692cdb0980049f3cfd9cb869319e7526dbefd38144ab6e0b52ceba67ab371045ce60d21286da')
27 PYTHONPATH=. pytest test/*.py
33 python setup.py install --root "$pkgdir" --skip-build -O1
35 # Install documentation
36 install -dm 755 "$pkgdir"/usr/share/doc/$pkgname
37 cp -r -a --no-preserve=ownership doc/html "$pkgdir"/usr/share/doc/$pkgname
38 install -D -m644 COPYING -t "${pkgdir}/usr/share/licenses/${pkgname}"
39 rm -rf "$pkgdir"/usr/share/doc/$pkgname/html/.doctrees