[arch-commits] Commit in python-hid/repos (community-any community-any/PKGBUILD)

Morten Linderud foxboron at archlinux.org
Wed Jun 30 09:17:02 UTC 2021


    Date: Wednesday, June 30, 2021 @ 09:17:02
  Author: foxboron
Revision: 967948

archrelease: copy trunk to community-any

Added:
  python-hid/repos/community-any/
  python-hid/repos/community-any/PKGBUILD
    (from rev 967947, python-hid/trunk/PKGBUILD)

----------+
 PKGBUILD |   26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)

Copied: python-hid/repos/community-any/PKGBUILD (from rev 967947, python-hid/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2021-06-30 09:17:02 UTC (rev 967948)
@@ -0,0 +1,26 @@
+# Maintainer: Morten Linderud <foxboron at archlinux.org>
+# 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"
+}




More information about the arch-commits mailing list