[arch-commits] Commit in python-wcwidth/repos (community-any community-any/PKGBUILD)

Kyle Keen kkeen at archlinux.org
Sat Jul 16 02:15:31 UTC 2016


    Date: Saturday, July 16, 2016 @ 02:15:31
  Author: kkeen
Revision: 182974

archrelease: copy trunk to community-any

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

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

Copied: python-wcwidth/repos/community-any/PKGBUILD (from rev 182973, python-wcwidth/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2016-07-16 02:15:31 UTC (rev 182974)
@@ -0,0 +1,35 @@
+# $Id$
+# 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=1
+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