[arch-commits] Commit in python-wcwidth/repos (2 files)

Felix Yan felixonmars at archlinux.org
Fri Oct 25 15:38:47 UTC 2019


    Date: Friday, October 25, 2019 @ 15:38:46
  Author: felixonmars
Revision: 519132

archrelease: copy trunk to community-staging-any

Added:
  python-wcwidth/repos/community-staging-any/
  python-wcwidth/repos/community-staging-any/PKGBUILD
    (from rev 519131, python-wcwidth/trunk/PKGBUILD)

----------+
 PKGBUILD |   34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)

Copied: python-wcwidth/repos/community-staging-any/PKGBUILD (from rev 519131, python-wcwidth/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2019-10-25 15:38:46 UTC (rev 519132)
@@ -0,0 +1,34 @@
+# Maintainer: Kyle Keen <keenerd at gmail.com>
+# Contributor: wenLiangcan <boxeed at gmail dot com>
+
+pkgbase=python-wcwidth
+pkgname=(python-wcwidth python2-wcwidth)
+_name=wcwidth
+pkgver=0.1.7
+pkgrel=4
+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')
+source=("https://files.pythonhosted.org/packages/source/w/$_name/$_name-$pkgver.tar.gz")
+md5sums=('b3b6a0a08f0c8a34d1de8cf44150a4ad')
+
+prepare() {
+  cd "$srcdir"
+  cp -r $_name-$pkgver python2-$_name-$pkgver
+}
+
+package_python-wcwidth() {
+  cd "$srcdir/$_name-$pkgver"
+  python3 setup.py install --root="${pkgdir}" --optimize=1
+  install -Dm644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
+package_python2-wcwidth() {
+  depends=('python2')
+  cd "$srcdir/python2-$_name-$pkgver"
+  python2 setup.py install --root="${pkgdir}" --optimize=1
+  install -Dm644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}



More information about the arch-commits mailing list