[arch-commits] Commit in hid-tools/repos (2 files)
Evangelos Foutras
foutrelis at archlinux.org
Mon Nov 4 10:38:43 UTC 2019
Date: Monday, November 4, 2019 @ 10:38:43
Author: foutrelis
Revision: 524025
archrelease: copy trunk to community-staging-any
Added:
hid-tools/repos/community-staging-any/
hid-tools/repos/community-staging-any/PKGBUILD
(from rev 524024, hid-tools/trunk/PKGBUILD)
----------+
PKGBUILD | 32 ++++++++++++++++++++++++++++++++
1 file changed, 32 insertions(+)
Copied: hid-tools/repos/community-staging-any/PKGBUILD (from rev 524024, hid-tools/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2019-11-04 10:38:43 UTC (rev 524025)
@@ -0,0 +1,32 @@
+# Maintainer: Filipe LaĆns (FFY00) <lains at archlinux.org>
+
+pkgname=hid-tools
+pkgver=0.2
+pkgrel=4
+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
+}
+
More information about the arch-commits
mailing list