Date: Thursday, June 17, 2021 @ 14:59:50
  Author: eschwartz
Revision: 964628

upgpkg: python-characteristic 14.3.0-12: drop no-longer-needed python2 split 
package

Modified:
  python-characteristic/trunk/PKGBUILD

----------+
 PKGBUILD |   27 +++++----------------------
 1 file changed, 5 insertions(+), 22 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2021-06-17 14:50:18 UTC (rev 964627)
+++ PKGBUILD    2021-06-17 14:59:50 UTC (rev 964628)
@@ -1,15 +1,15 @@
 # Maintainer: Felix Yan <felixonm...@archlinux.org>
 
-pkgbase=python-characteristic
-pkgname=('python-characteristic' 'python2-characteristic')
+pkgname=python-characteristic
 pkgver=14.3.0
-pkgrel=11
+pkgrel=12
 pkgdesc="Python attributes without boilerplate."
 arch=('any')
 license=('MIT')
 url="https://pypi.python.org/pypi/characteristic";
-makedepends=('python-setuptools' 'python2-setuptools')
-checkdepends=('python-pytest-runner' 'python2-pytest-runner')
+depends=('python')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest-runner')
 
source=("https://files.pythonhosted.org/packages/source/c/characteristic/characteristic-$pkgver.tar.gz"{,.asc})
 md5sums=('b249368dd021fde1c06b4802867c0913'
          'SKIP')
@@ -17,37 +17,20 @@
 
 prepare() {
   sed -i 's/\[pytest\]/[tool:pytest]/' characteristic-$pkgver/setup.cfg
-  cp -a characteristic-$pkgver{,-py2}
 }
 
 build() {
   cd "$srcdir"/characteristic-$pkgver
   python setup.py build
-
-  cd "$srcdir"/characteristic-$pkgver-py2
-  python2 setup.py build
 }
 
 check() {
   cd "$srcdir"/characteristic-$pkgver
   python setup.py test
-
-  cd "$srcdir"/characteristic-$pkgver-py2
-  python2 setup.py test
 }
 
 package_python-characteristic() {
-  depends=('python')
-
   cd characteristic-$pkgver
   python setup.py install --root="$pkgdir" --optimize=1 --skip-build
   install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
 }
-
-package_python2-characteristic() {
-  depends=('python2')
-
-  cd characteristic-$pkgver-py2
-  python2 setup.py install --root="$pkgdir" --optimize=1 --skip-build
-  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
-}

Reply via email to