[arch-commits] Commit in python-hidapi/repos/community-x86_64 (PKGBUILD PKGBUILD)

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


    Date: Saturday, April 25, 2020 @ 00:09:09
  Author: ffy00
Revision: 619636

archrelease: copy trunk to community-x86_64

Added:
  python-hidapi/repos/community-x86_64/PKGBUILD
    (from rev 619635, python-hidapi/trunk/PKGBUILD)
Deleted:
  python-hidapi/repos/community-x86_64/PKGBUILD

----------+
 PKGBUILD |   74 +++++++++++++++++++++++++++++++------------------------------
 1 file changed, 38 insertions(+), 36 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2020-04-25 00:08:57 UTC (rev 619635)
+++ PKGBUILD	2020-04-25 00:09:09 UTC (rev 619636)
@@ -1,36 +0,0 @@
-# Maintainer: Morten Linderud <foxboron at archlinux.org>
-# Contributor: Timothy Redaelli <timothy.redaelli at gmail.com>
-# Contributor: Andy Weidenbaum <archbaum at gmail.com>
-# Contributor: Kevin Azzam <arch at kevin.azz.am>
-
-pkgname=python-hidapi
-_pipname=hidapi
-pkgver=0.9.0.2
-_pkgver=${pkgver%.*}.post${pkgver##*.}
-pkgrel=3
-arch=('x86_64')
-pkgdesc="A Cython interface to the hidapi from signal11/hidapi"
-url="https://github.com/trezor/cython-hidapi"
-depends=('python')
-makedepends=('cython' 'python-setuptools' 'udev')
-license=('custom')
-source=(https://pypi.org/packages/source/${_pipname:0:1}/$_pipname/$_pipname-$_pkgver.tar.gz)
-sha512sums=('9d0264280f978ee62664c5f1fa2dcdf1d02cb7d7ef7b08b3a7ed9768a2b6820bd124f71061fa97fe0a7b61bdf289e764c1db1178a581d9a9c029895f2fc75a30')
-
-build() {
-  cd "$_pipname-$_pkgver"
-
-  python setup.py build --without-libusb
-}
-
-package_python-hidapi() {
-  cd $_pipname-$_pkgver
-
-  python setup.py install --root="$pkgdir" --optimize=1
-
-  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
-  install -Dm 755 LICENSE-gpl3.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE-gpl3.txt
-  install -Dm 755 LICENSE-orig.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE-orig.txt
-}
-

Copied: python-hidapi/repos/community-x86_64/PKGBUILD (from rev 619635, python-hidapi/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-04-25 00:09:09 UTC (rev 619636)
@@ -0,0 +1,38 @@
+# Maintainer: Morten Linderud <foxboron at archlinux.org>
+# Contributor: Timothy Redaelli <timothy.redaelli at gmail.com>
+# Contributor: Andy Weidenbaum <archbaum at gmail.com>
+# Contributor: Kevin Azzam <arch at kevin.azz.am>
+
+pkgname=python-hidapi
+_pipname=hidapi
+pkgver=0.9.0.2
+_pkgver=${pkgver%.*}.post${pkgver##*.}
+pkgrel=4
+arch=('x86_64')
+pkgdesc="A Cython interface to the hidapi from signal11/hidapi"
+url="https://github.com/trezor/cython-hidapi"
+depends=('python' 'hidapi')
+makedepends=('cython' 'python-setuptools' 'udev')
+license=('custom')
+source=(https://pypi.org/packages/source/${_pipname:0:1}/$_pipname/$_pipname-$_pkgver.tar.gz)
+sha512sums=('9d0264280f978ee62664c5f1fa2dcdf1d02cb7d7ef7b08b3a7ed9768a2b6820bd124f71061fa97fe0a7b61bdf289e764c1db1178a581d9a9c029895f2fc75a30')
+
+build() {
+  cd "$_pipname-$_pkgver"
+
+  python setup.py build \
+        --without-libusb --with-system-hidapi
+}
+
+package_python-hidapi() {
+  cd $_pipname-$_pkgver
+
+  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
+  install -Dm 755 LICENSE-gpl3.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE-gpl3.txt
+  install -Dm 755 LICENSE-orig.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE-orig.txt
+}
+



More information about the arch-commits mailing list