[arch-commits] Commit in python-hidapi/trunk (PKGBUILD)

Filipe Laíns ffy00 at archlinux.org
Tue Dec 17 23:25:42 UTC 2019


    Date: Tuesday, December 17, 2019 @ 23:25:41
  Author: ffy00
Revision: 537974

drop python2 version

Modified:
  python-hidapi/trunk/PKGBUILD

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

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-12-17 23:15:37 UTC (rev 537973)
+++ PKGBUILD	2019-12-17 23:25:41 UTC (rev 537974)
@@ -2,48 +2,34 @@
 # Contributor: Andy Weidenbaum <archbaum at gmail.com>
 # Contributor: Kevin Azzam <arch at kevin.azz.am>
 
-pkgbase=python-hidapi
-pkgname=('python-hidapi' 'python2-hidapi')
+pkgname=python-hidapi
 _pipname=hidapi
 pkgver=0.7.99.21
 _pkgver=${pkgver%.*}.post${pkgver##*.}
 pkgrel=4
+arch=('x86_64')
 pkgdesc="A Cython interface to the hidapi from signal11/hidapi"
-arch=('x86_64')
-makedepends=('cython2' 'python2-setuptools' 'cython' 'python-setuptools' 'libusb' 'udev')
 url="https://github.com/trezor/cython-hidapi"
+depends=('libusb' 'python')
+makedepends=('cython' 'python-setuptools' 'udev')
 license=('custom')
 source=(https://pypi.org/packages/source/${_pipname:0:1}/$_pipname/$_pipname-$_pkgver.tar.gz)
-sha256sums=('e0be1aa6566979266a8fc845ab0e18613f4918cf2c977fe67050f5dc7e2a9a97')
+sha512sums=('40efcbbb1d30c1413a5bc764e9bcef8b798f194456b35c83ea4f46c2eacf3eccfca5bb482602892ba8f24ed8085eb6e21e1fb94f7f12a7abb22bd2c571b21008')
 
-
-prepare() {
-  cp -R $_pipname-$_pkgver python2-$_pipname-$_pkgver
-}
-
 build() {
   cd "$_pipname-$_pkgver"
+
   python setup.py build
-
-  cd "../python2-$_pipname-$_pkgver"
-  python2 setup.py build
 }
 
-
 package_python-hidapi() {
-  depends=('libusb' 'python')
   cd $_pipname-$_pkgver
-  python setup.py install --root="$pkgdir/" --optimize=1
 
-  install -dm 755 "$pkgdir/usr/share/licenses/$pkgname"
-  echo "You are free to use cython-hidapi code for any purpose." > "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+  python setup.py install --root="$pkgdir" --optimize=1
+
+  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
 }
 
-package_python2-hidapi() {
-  depends=('libusb' 'python2')
-  cd "python2-$_pipname-$_pkgver"
-  python2 setup.py install --root="$pkgdir" --optimize=1
-
-  install -dm 755 "$pkgdir/usr/share/licenses/$pkgname"
-  echo "You are free to use cython-hidapi code for any purpose." > "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
-}



More information about the arch-commits mailing list