[arch-commits] Commit in python-libevdev/trunk (PKGBUILD)

Filipe Laíns ffy00 at archlinux.org
Fri May 24 00:13:11 UTC 2019


    Date: Friday, May 24, 2019 @ 00:13:10
  Author: ffy00
Revision: 469462

upgpkg: python-libevdev 0.7-1

- Initial release

Added:
  python-libevdev/trunk/PKGBUILD

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

Added: PKGBUILD
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2019-05-24 00:13:10 UTC (rev 469462)
@@ -0,0 +1,39 @@
+# Maintainer: Filipe Laíns (FFY00) <lains at archlinux.org>
+
+pkgname=python-libevdev
+pkgver=0.7
+pkgrel=1
+arch=('any')
+url='https://gitlab.freedesktop.org/libevdev/python-libevdev'
+license=('MIT')
+pkgdesc='Python wrapper for libevdev'
+depends=('python' 'libevdev')
+makedepends=('python-setuptools' 'python-sphinx' 'python-sphinx_rtd_theme')
+checkdepends=('python-pytest' 'python-py' 'python-pluggy')
+source=("$url/-/archive/$pkgver/$pkgname-$pkgver.tar.gz")
+sha512sums=('7ab4bfcb53c0f84735ad5e7fc8c5bde5b164dd3600d7e8c99fdeea1481f75cc177f67ce875ed14ff93cff43d8037cf5c729abc38d2b9b4f2791ad75d5ad50920')
+
+build() {
+  cd $pkgname-$pkgver
+
+  python setup.py build
+
+  make doc
+}
+
+check() {
+  cd $pkgname-$pkgver
+
+  PYTHONPATH=. pytest test/*.py
+}
+
+package() {
+  cd $pkgname-$pkgver
+
+  python setup.py install --root "$pkgdir" --skip-build -O1
+
+  # Install documentation
+  install -dm 755 "$pkgdir"/usr/share/doc/$pkgname
+  cp -r -a --no-preserve=ownership doc/html "$pkgdir"/usr/share/doc/$pkgname
+}
+


More information about the arch-commits mailing list