Date: Wednesday, June 30, 2021 @ 09:16:56 Author: foxboron Revision: 967947
upgpkg: python-hid 1.0.4-3 Added: python-hid/trunk/PKGBUILD ----------+ PKGBUILD | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) Added: PKGBUILD =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2021-06-30 09:16:56 UTC (rev 967947) @@ -0,0 +1,26 @@ +# Maintainer: Morten Linderud <[email protected]> +# Contributor: Thomas Weißschuh <thomas t-8ch de> + +pkgname=python-hid +pkgver=1.0.4 +pkgrel=3 +_pkgname=${pkgname#python-} +pkgdesc="Python hidapi bindings in ctypes (aka pyhidapi)" +arch=(any) +url="https://github.com/apmorton/pyhidapi" +license=(MIT) +depends=(hidapi python) +conflicts=(python-hidapi) +makedepends=(python-setuptools python2-setuptools) +source=("$pkgname-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz") +sha256sums=('f61b0382f37a334bc8ba8604bc84b94875ee4f594fbbaf82b2c3b3e827883fc1') + +build() { + cd "$_pkgname-$pkgver" + python setup.py build +} + +package() { + cd "$_pkgname-$pkgver" + python setup.py install --skip-build -O1 --root="$pkgdir" +}
