[arch-commits] Commit in python-wcwidth/trunk (PKGBUILD)
Antonio Rojas
arojas at gemini.archlinux.org
Wed Dec 15 12:02:00 UTC 2021
Date: Wednesday, December 15, 2021 @ 12:01:59
Author: arojas
Revision: 1072988
Drop python2
Modified:
python-wcwidth/trunk/PKGBUILD
----------+
PKGBUILD | 21 ++++-----------------
1 file changed, 4 insertions(+), 17 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2021-12-15 12:00:39 UTC (rev 1072987)
+++ PKGBUILD 2021-12-15 12:01:59 UTC (rev 1072988)
@@ -1,34 +1,21 @@
# Maintainer: Kyle Keen <keenerd at gmail.com>
# Contributor: wenLiangcan <boxeed at gmail dot com>
-pkgbase=python-wcwidth
-pkgname=(python-wcwidth python2-wcwidth)
+pkgname=python-wcwidth
_name=wcwidth
pkgver=0.2.5
-pkgrel=5
+pkgrel=6
pkgdesc="Measures number of Terminal column cells of wide-character codes"
url="https://github.com/jquast/wcwidth"
license=('MIT')
arch=('any')
depends=('python')
-makedepends=('python-setuptools' 'python2-setuptools' 'python2-backports.functools_lru_cache')
+makedepends=('python-setuptools')
source=("https://files.pythonhosted.org/packages/source/w/$_name/$_name-$pkgver.tar.gz")
md5sums=('a07a75f99d316e14838ac760c831ea37')
-prepare() {
- cd "$srcdir"
- cp -r $_name-$pkgver python2-$_name-$pkgver
-}
-
-package_python-wcwidth() {
+package() {
cd "$srcdir/$_name-$pkgver"
python3 setup.py install --root="${pkgdir}" --optimize=1
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
-
-package_python2-wcwidth() {
- depends=('python2' 'python2-backports.functools_lru_cache')
- cd "$srcdir/python2-$_name-$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