Date: Thursday, June 16, 2022 @ 21:40:41 Author: foxboron Revision: 1238242
archrelease: copy trunk to community-x86_64 Added: python-hidapi/repos/community-x86_64/PKGBUILD (from rev 1238241, 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-06-16 21:40:34 UTC (rev 1238241) +++ PKGBUILD 2022-06-16 21:40:41 UTC (rev 1238242) @@ -1,45 +0,0 @@ -# Maintainer: Morten Linderud <foxbo...@archlinux.org> -# Contributor: Timothy Redaelli <timothy.redae...@gmail.com> -# Contributor: Andy Weidenbaum <archb...@gmail.com> -# Contributor: Kevin Azzam <a...@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 -} Copied: python-hidapi/repos/community-x86_64/PKGBUILD (from rev 1238241, python-hidapi/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2022-06-16 21:40:41 UTC (rev 1238242) @@ -0,0 +1,45 @@ +# Maintainer: Morten Linderud <foxbo...@archlinux.org> +# Contributor: Timothy Redaelli <timothy.redae...@gmail.com> +# Contributor: Andy Weidenbaum <archb...@gmail.com> +# Contributor: Kevin Azzam <a...@kevin.azz.am> + +pkgname=python-hidapi +_pipname=hidapi +pkgver=0.12.0.2 +_pkgver=${pkgver%.*}.post${pkgver##*.} +# _pkgver="$pkgver" +pkgrel=1 +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=('dee9f1f07e4f297b935c8e3fbe798471f449f6a101d68131db23d24ccfb5ce445cc3b0e7305606d3630443a817aa75a27093109078735168a59d21614606f0a0') + +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 +}