[arch-commits] Commit in python-pyusb/repos (2 files)

Felix Yan felixonmars at gemini.archlinux.org
Wed Dec 1 14:55:23 UTC 2021


    Date: Wednesday, December 1, 2021 @ 14:55:22
  Author: felixonmars
Revision: 1059535

archrelease: copy trunk to community-staging-any

Added:
  python-pyusb/repos/community-staging-any/
  python-pyusb/repos/community-staging-any/PKGBUILD
    (from rev 1059533, python-pyusb/trunk/PKGBUILD)

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

Copied: python-pyusb/repos/community-staging-any/PKGBUILD (from rev 1059533, python-pyusb/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2021-12-01 14:55:22 UTC (rev 1059535)
@@ -0,0 +1,39 @@
+# Maintainer: NicoHood <archlinux {cat} nicohood {dog} de>
+# PGP ID: 97312D5EB9D7AE7D0BD4307351DAE9B7C1AE9161
+# Contributor: Martchus <martchus at gmx.net>
+# Contributor: Nuno Araujo <nuno.araujo at russo79.com>
+# Contributor: Limao Luo <luolimao+AUR at gmail.com>
+# Contributor: Jason Giangrande <jgiangrande at clarku.edu>
+
+_pkgname=pyusb
+pkgname=python-$_pkgname
+pkgdesc='USB access on Python'
+pkgver=1.2.1
+pkgrel=2
+arch=('any')
+url='https://github.com/pyusb/pyusb'
+license=('custom')
+depends=('python' 'libusb')
+makedepends=('git' 'python-setuptools-scm')
+source=("git+$url.git?signed#tag=v$pkgver")
+sha512sums=('SKIP')
+validpgpkeys=('B04841AE800C1BF01FE1BC3D084C5584542E1574'  # Wander Lairson Costa <wcosta at mozilla.com>
+              '23F335ED4E829797734B22F65841AF7406AF7AD0') # Jonas Tadeu Silva Malaco Filho <jonas at jonasmalaco.com>
+
+build() {
+    cd $_pkgname
+
+    export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
+
+    python setup.py build
+}
+
+package() {
+    cd $_pkgname
+
+    export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
+
+    python setup.py install --root="${pkgdir}" --optimize=1
+
+    install -Dm 644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}



More information about the arch-commits mailing list