[arch-commits] Commit in python-hidapi/repos/community-x86_64 (PKGBUILD PKGBUILD)
Morten Linderud
foxboron at gemini.archlinux.org
Wed Apr 6 20:16:28 UTC 2022
Date: Wednesday, April 6, 2022 @ 20:16:28
Author: foxboron
Revision: 1181654
archrelease: copy trunk to community-x86_64
Added:
python-hidapi/repos/community-x86_64/PKGBUILD
(from rev 1181653, python-hidapi/trunk/PKGBUILD)
Deleted:
python-hidapi/repos/community-x86_64/PKGBUILD
----------+
PKGBUILD | 90 ++++++++++++++++++++++++++++++-------------------------------
1 file changed, 45 insertions(+), 45 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2022-04-06 20:16:23 UTC (rev 1181653)
+++ PKGBUILD 2022-04-06 20:16:28 UTC (rev 1181654)
@@ -1,45 +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.11.0.2
-_pkgver=${pkgver%.*}.post${pkgver##*.}
-# _pkgver="$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' 'hidapi')
-makedepends=('cython' 'python-setuptools' 'udev')
-license=('custom')
-source=("https://pypi.org/packages/source/${_pipname:0:1}/$_pipname/$_pipname-$_pkgver.tar.gz")
-sha512sums=('5365299ef8488561a82d2a2c911523c5d34e260f8068b4d4d26e912b6e348b328229498f0ee38d1eb9c81a969e9f91ffc7a0b9a60359f4e9d0511f8937e5ff21')
-
-build() {
- cd "$_pipname-$_pkgver"
-
- python setup.py build \
- --without-libusb --with-system-hidapi
-}
-
-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
-}
-
-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
-}
Copied: python-hidapi/repos/community-x86_64/PKGBUILD (from rev 1181653, python-hidapi/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2022-04-06 20:16:28 UTC (rev 1181654)
@@ -0,0 +1,45 @@
+# 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.11.2
+#_pkgver=${pkgver%.*}.post${pkgver##*.}
+_pkgver="$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' 'hidapi')
+makedepends=('cython' 'python-setuptools' 'udev')
+license=('custom')
+source=("https://pypi.org/packages/source/${_pipname:0:1}/$_pipname/$_pipname-$_pkgver.tar.gz")
+sha512sums=('f1bf1bc9174a4069b10ba33c18b8b5c02bd046ca2bdb1fc90377bad2c53fa1457e15cea1e8c70cb7f06f7a0b54cc9d9841b122024640404d21d1b3b1e091a9f4')
+
+build() {
+ cd "$_pipname-$_pkgver"
+
+ python setup.py build \
+ --without-libusb --with-system-hidapi
+}
+
+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
+}
+
+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