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

Antonio Rojas arojas at archlinux.org
Sat Nov 9 20:06:56 UTC 2019


    Date: Saturday, November 9, 2019 @ 20:06:55
  Author: arojas
Revision: 524881

Drop python2

Modified:
  python-pyte/trunk/PKGBUILD

----------+
 PKGBUILD |   30 +++++-------------------------
 1 file changed, 5 insertions(+), 25 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-11-09 20:04:10 UTC (rev 524880)
+++ PKGBUILD	2019-11-09 20:06:55 UTC (rev 524881)
@@ -1,7 +1,6 @@
 # Maintainer: Felix Yan <felixonmars at archlinux.org>
 
-pkgbase=python-pyte
-pkgname=('python-pyte' 'python2-pyte')
+pkgname=python-pyte
 pkgver=0.8.0
 pkgrel=4
 pkgdesc='Simple VTXXX-compatible terminal emulator'
@@ -8,43 +7,24 @@
 arch=('any')
 license=('LGPL3')
 url='https://github.com/selectel/pyte'
-makedepends=('python-setuptools' 'python2-setuptools' 'python-wcwidth' 'python2-wcwidth'
-             'python-pytest-runner' 'python2-pytest-runner')
-source=("$pkgbase-$pkgver.tar.gz::https://github.com/selectel/pyte/archive/$pkgver.tar.gz")
+depends=('python-wcwidth')
+makedepends=('python-setuptools' 'python-pytest-runner')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/selectel/pyte/archive/$pkgver.tar.gz")
 sha512sums=('c488fd0a61c1dc34b27e12ed9ba1109bb2c331626c982da06e7540bdd168008cb5106a17c71e60e38c493f2dd9f21ba3cf05118928744dfa192d62e511b4c4e8')
 
-prepare() {
-  cp -a pyte-$pkgver{,-py2}
-}
-
 build() {
   cd "$srcdir"/pyte-$pkgver
   python setup.py build
-
-  cd "$srcdir"/pyte-$pkgver-py2
-  python2 setup.py build
 }
 
 check() {
   cd "$srcdir"/pyte-$pkgver
   python setup.py pytest
-
-  cd "$srcdir"/pyte-$pkgver-py2
-  python2 setup.py pytest
 }
 
-package_python-pyte() {
-  depends=('python-wcwidth')
-
+package() {
   cd pyte-$pkgver
   python setup.py install --root="$pkgdir" --optimize=1
 }
 
-package_python2-pyte() {
-  depends=('python2-wcwidth')
-
-  cd pyte-$pkgver-py2
-  python2 setup.py install --root="$pkgdir" --optimize=1
-}
-
 # vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list