[arch-commits] Commit in python-wcwidth/repos (2 files)
Evangelos Foutras
foutrelis at archlinux.org
Sun Dec 25 17:26:01 UTC 2016
Date: Sunday, December 25, 2016 @ 17:26:01
Author: foutrelis
Revision: 202091
archrelease: copy trunk to community-staging-any
Added:
python-wcwidth/repos/community-staging-any/
python-wcwidth/repos/community-staging-any/PKGBUILD
(from rev 202090, python-wcwidth/trunk/PKGBUILD)
----------+
PKGBUILD | 35 +++++++++++++++++++++++++++++++++++
1 file changed, 35 insertions(+)
Copied: python-wcwidth/repos/community-staging-any/PKGBUILD (from rev 202090, python-wcwidth/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2016-12-25 17:26:01 UTC (rev 202091)
@@ -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=2
+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