[arch-commits] Commit in python-hidapi/trunk (PKGBUILD)

Filipe Laíns ffy00 at archlinux.org
Sat Apr 25 00:08:57 UTC 2020


    Date: Saturday, April 25, 2020 @ 00:08:57
  Author: ffy00
Revision: 619635

upgpkg: python-hidapi 0.9.0.2-4 (fix backend & use system hidapi)

Modified:
  python-hidapi/trunk/PKGBUILD

----------+
 PKGBUILD |   10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-04-25 00:07:29 UTC (rev 619634)
+++ PKGBUILD	2020-04-25 00:08:57 UTC (rev 619635)
@@ -7,11 +7,11 @@
 _pipname=hidapi
 pkgver=0.9.0.2
 _pkgver=${pkgver%.*}.post${pkgver##*.}
-pkgrel=3
+pkgrel=4
 arch=('x86_64')
 pkgdesc="A Cython interface to the hidapi from signal11/hidapi"
 url="https://github.com/trezor/cython-hidapi"
-depends=('python')
+depends=('python' 'hidapi')
 makedepends=('cython' 'python-setuptools' 'udev')
 license=('custom')
 source=(https://pypi.org/packages/source/${_pipname:0:1}/$_pipname/$_pipname-$_pkgver.tar.gz)
@@ -20,13 +20,15 @@
 build() {
   cd "$_pipname-$_pkgver"
 
-  python setup.py build --without-libusb
+  python setup.py build \
+        --without-libusb --with-system-hidapi
 }
 
 package_python-hidapi() {
   cd $_pipname-$_pkgver
 
-  python setup.py install --root="$pkgdir" --optimize=1
+  python setup.py install --root="$pkgdir" --optimize=1 --skip-build \
+        --without-libusb --with-system-hidapi
 
   install -Dm 755 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt
   install -Dm 755 LICENSE-bsd.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE-bsd.txt



More information about the arch-commits mailing list