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

Jelle van der Waa jelle at archlinux.org
Fri Aug 23 15:06:39 UTC 2019


    Date: Friday, August 23, 2019 @ 15:06:38
  Author: jelle
Revision: 501312

Drop python2 module

Modified:
  python-pyusb/trunk/PKGBUILD

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

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-08-23 14:01:09 UTC (rev 501311)
+++ PKGBUILD	2019-08-23 15:06:38 UTC (rev 501312)
@@ -6,8 +6,7 @@
 # Contributor: Jason Giangrande <jgiangrande at clarku.edu>
 
 _pkgname=pyusb
-pkgbase=python-pyusb
-pkgname=('python-pyusb' 'python2-pyusb')
+pkgname=python-pyusb
 pkgdesc="USB access on Python"
 pkgver=1.0.2
 pkgrel=2
@@ -14,7 +13,8 @@
 arch=('any')
 url="https://github.com/pyusb/pyusb"
 license=('custom')
-makedepends=('python-distribute' 'python2-distribute')
+depends=('python' 'libusb')
+makedepends=('python-distribute')
 #source=("${pkgname}-${pkgver}.tar.gz::https://github.com/walac/${_pkgname}/archive/${pkgver}.tar.gz")
 source=("${_pkgname}-${pkgver}.tar.gz::https://pypi.org/packages/source/p/${_pkgname}/${_pkgname}-${pkgver}.tar.gz"
         "${_pkgname}-${pkgver}.tar.gz.asc::https://pypi.org/packages/source/p/${_pkgname}/${_pkgname}-${pkgver}.tar.gz.asc")
@@ -22,26 +22,8 @@
             'SKIP')
 validpgpkeys=('B04841AE800C1BF01FE1BC3D084C5584542E1574') # Wander Lairson Costa <wcosta at mozilla.com>
 
-prepare() {
-    # Create a copy for the python2 package
-    cp -r "${_pkgname}-${pkgver}" "python2-${_pkgname}-${pkgver}"
-}
-
-package_python-pyusb() {
-    pkgdesc="USB access on Python 3"
-    depends=('python' 'libusb')
-
+package() {
     cd "${srcdir}/${_pkgname}-${pkgver}"
     python setup.py install --root="${pkgdir}" --optimize=1
     install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
 }
-
-package_python2-pyusb() {
-    pkgdesc="USB access on Python 2"
-    depends=('python2' 'libusb')
-    replaces=('python2-pyusb-beta')
-
-    cd "${srcdir}/python2-${_pkgname}-${pkgver}"
-    python2 setup.py install --root="${pkgdir}" --optimize=1
-    install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
-}


More information about the arch-commits mailing list