[arch-commits] Commit in python-hidapi/trunk (PKGBUILD)
Morten Linderud
foxboron at archlinux.org
Sun Nov 1 18:43:33 UTC 2020
Date: Sunday, November 1, 2020 @ 18:43:32
Author: foxboron
Revision: 738927
upgpkg: python-hidapi 0.10.0.1-5
Modified:
python-hidapi/trunk/PKGBUILD
----------+
PKGBUILD | 25 +++++++++----------------
1 file changed, 9 insertions(+), 16 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2020-11-01 18:40:31 UTC (rev 738926)
+++ PKGBUILD 2020-11-01 18:43:32 UTC (rev 738927)
@@ -5,7 +5,7 @@
pkgname=python-hidapi
_pipname=hidapi
-pkgver=0.9.0.3
+pkgver=0.10.0.1
_pkgver=${pkgver%.*}.post${pkgver##*.}
pkgrel=5
arch=('x86_64')
@@ -14,22 +14,21 @@
depends=('python' 'hidapi')
makedepends=('cython' 'python-setuptools' 'udev')
license=('custom')
-source=("https://pypi.org/packages/source/${_pipname:0:1}/$_pipname/$_pipname-$_pkgver.tar.gz"
- 'revert-hid_get_input_report.patch')
-sha512sums=('606540833459e615a8e50ff3a2c59362dab7d19d42d5e9dc2288c8c8d32e3df7214e758a9814e7de6d26bbdccd76ccf6c652b0bf8ac5b3f46124a9a7b007b971'
- '717bf0a24196b1c2da90a7928ac7707ff9cdb6010e1998b3bc8129c8ca9233058b6f9197bcf35504d4b0d67b4288f6500dfe805acae48bd9b53c24b6da946d4a')
+source=("https://pypi.org/packages/source/${_pipname:0:1}/$_pipname/$_pipname-$_pkgver.tar.gz")
+sha512sums=('edd3fd0adf986add89721ff9cdf91d001024f9aceb93f4b3ff6d9d211fa93f301b0bacc6f2acebf81d1d70996fd977ee7fa5ba7dc9bfdc3ef2354de23f6be42a')
-prepare() {
+build() {
cd "$_pipname-$_pkgver"
- patch --forward --strip=1 --input="${srcdir}/revert-hid_get_input_report.patch"
+ python setup.py build \
+ --without-libusb --with-system-hidapi
}
-build() {
+check() {
cd "$_pipname-$_pkgver"
- python setup.py build \
- --without-libusb --with-system-hidapi
+ local python_version=$(python -c 'import sys; print(".".join(map(str, sys.version_info[:2])))')
+ PYTHONPATH="$PWD/build/lib.linux-$CARCH-${python_version}" python tests.py
}
package_python-hidapi() {
@@ -44,9 +43,3 @@
install -Dm 755 LICENSE-orig.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE-orig.txt
}
-check() {
- cd "$_pipname-$_pkgver"
-
- local python_version=$(python -c 'import sys; print(".".join(map(str, sys.version_info[:2])))')
- PYTHONPATH="$PWD/build/lib.linux-$CARCH-${python_version}" python tests.py
-}
More information about the arch-commits
mailing list