[arch-commits] Commit in hid-tools/repos (2 files)

Felix Yan felixonmars at gemini.archlinux.org
Fri Dec 3 00:47:03 UTC 2021


    Date: Friday, December 3, 2021 @ 00:47:03
  Author: felixonmars
Revision: 1064052

archrelease: copy trunk to community-staging-any

Added:
  hid-tools/repos/community-staging-any/
  hid-tools/repos/community-staging-any/PKGBUILD
    (from rev 1064051, hid-tools/trunk/PKGBUILD)

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

Copied: hid-tools/repos/community-staging-any/PKGBUILD (from rev 1064051, hid-tools/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2021-12-03 00:47:03 UTC (rev 1064052)
@@ -0,0 +1,32 @@
+# Maintainer: Filipe Laíns (FFY00) <lains at archlinux.org>
+
+pkgname=hid-tools
+pkgver=0.2
+pkgrel=7
+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