[arch-commits] Commit in python-libevdev/repos (2 files)
Evangelos Foutras
foutrelis at archlinux.org
Mon Nov 4 11:43:57 UTC 2019
Date: Monday, November 4, 2019 @ 11:43:57
Author: foutrelis
Revision: 524039
archrelease: copy trunk to community-staging-any
Added:
python-libevdev/repos/community-staging-any/
python-libevdev/repos/community-staging-any/PKGBUILD
(from rev 524038, python-libevdev/trunk/PKGBUILD)
----------+
PKGBUILD | 39 +++++++++++++++++++++++++++++++++++++++
1 file changed, 39 insertions(+)
Copied: python-libevdev/repos/community-staging-any/PKGBUILD (from rev 524038, python-libevdev/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2019-11-04 11:43:57 UTC (rev 524039)
@@ -0,0 +1,39 @@
+# Maintainer: Filipe Laíns (FFY00) <lains at archlinux.org>
+
+pkgname=python-libevdev
+pkgver=0.8
+pkgrel=2
+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=('dbade600f2f0887c6702e5569b5b8132d636411c589395bb9770efd261c5a44479d43faecb683df45c03233e715c713daa9e70400c03ba4e7e1e2ada11128d61')
+
+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