[arch-commits] Commit in hid-tools/repos (2 files)
Evangelos Foutras
foutrelis at archlinux.org
Thu Nov 12 17:43:07 UTC 2020
Date: Thursday, November 12, 2020 @ 17:43:07
Author: foutrelis
Revision: 752779
archrelease: copy trunk to community-staging-any
Added:
hid-tools/repos/community-staging-any/
hid-tools/repos/community-staging-any/PKGBUILD
(from rev 752777, hid-tools/trunk/PKGBUILD)
----------+
PKGBUILD | 32 ++++++++++++++++++++++++++++++++
1 file changed, 32 insertions(+)
Copied: hid-tools/repos/community-staging-any/PKGBUILD (from rev 752777, hid-tools/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2020-11-12 17:43:07 UTC (rev 752779)
@@ -0,0 +1,32 @@
+# Maintainer: Filipe Laíns (FFY00) <lains at archlinux.org>
+
+pkgname=hid-tools
+pkgver=0.2
+pkgrel=6
+arch=('any')
+url='https://gitlab.freedesktop.org/libevdev/hid-tools'
+license=('GPL2')
+pkgdesc='Python scripts to manipulate HID data'
+depends=('python-parse' 'python-pyudev')
+makedepends=('python-setuptools' 'python-pypandoc' 'python-sphinx' 'python-sphinx_rtd_theme')
+source=("$url/-/archive/$pkgver/$pkgname-$pkgver.tar.gz")
+sha512sums=('580635bc679b8b6dd396c72b9a5d6560a56a3c3fa4b1d83ebbe82508977e23ce3abf0892406605937e62cde6335d205eba283b6c67dfe65630a2a27d74747ffb')
+
+build() {
+ cd $pkgname-$pkgver
+
+ python setup.py build
+
+ make doc
+}
+
+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
+ rm -rf "$pkgdir"/usr/share/doc/$pkgname/html/.doctrees
+}
More information about the arch-commits
mailing list