Date: Thursday, November 3, 2022 @ 11:46:45
Author: freswa
Revision: 1341594
add python-hid-parser to [community] as deps for solaar
Added:
python-hid-parser/
python-hid-parser/repos/
python-hid-parser/trunk/
python-hid-parser/trunk/PKGBUILD
----------+
PKGBUILD | 30 ++++++++++++++++++++++++++++++
1 file changed, 30 insertions(+)
Added: python-hid-parser/trunk/PKGBUILD
===================================================================
--- python-hid-parser/trunk/PKGBUILD (rev 0)
+++ python-hid-parser/trunk/PKGBUILD 2022-11-03 11:46:45 UTC (rev 1341594)
@@ -0,0 +1,30 @@
+# Maintainer: Frederik Schwan <freswa at archlinux dot org>
+
+pkgname=python-hid-parser
+pkgver=0.0.3
+pkgrel=1
+pkgdesc='Typed pure Python library to parse HID report descriptors'
+arch=('any')
+url='https://github.com/usb-tools/python-hid-parser'
+license=('MIT')
+makedepends=(python-{build,installer,setuptools,wheel})
+checkdepends=(python-{hypothesis,pytest})
+source=("https://github.com/usb-tools/python-hid-parser/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz")
+b2sums=('00a485093ae4f1268c3e6ed8b194f1c0f1579e665863cd609a4690f292b8646ec6d51ab35f803dac7cb0185b0b837fe6ae810a7567fe96102d43e39eefb950e6')
+
+build() {
+ cd ${pkgname}-${pkgver}
+ python -m build --wheel --no-isolation
+}
+
+
+check() {
+ cd ${pkgname}-${pkgver}
+ python -m pytest
+}
+
+package() {
+ cd ${pkgname}-${pkgver}
+ python -m installer --destdir="$pkgdir" dist/*.whl
+ install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
+}