[arch-commits] Commit in python-curtsies/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Fri Oct 25 20:15:58 UTC 2019
Date: Friday, October 25, 2019 @ 20:15:57
Author: felixonmars
Revision: 519823
archrelease: copy trunk to community-staging-any
Added:
python-curtsies/repos/community-staging-any/
python-curtsies/repos/community-staging-any/PKGBUILD
(from rev 519821, python-curtsies/trunk/PKGBUILD)
----------+
PKGBUILD | 45 +++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 45 insertions(+)
Copied: python-curtsies/repos/community-staging-any/PKGBUILD (from rev 519821, python-curtsies/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2019-10-25 20:15:57 UTC (rev 519823)
@@ -0,0 +1,45 @@
+# Maintainer: Kyle Keen <keenerd at gmail.com>
+
+pkgbase=python-curtsies
+pkgname=(python-curtsies python2-curtsies)
+_pkgname=curtsies
+pkgver=0.3.0
+pkgrel=3
+pkgdesc="Curses-like terminal wrapper with a display based on compositing 2d arrays of text"
+arch=('any')
+url="https://pypi.python.org/pypi/curtsies"
+license=('MIT')
+depends=('python-blessings' 'python-wcwidth')
+makedepends=('python-setuptools' 'python2-setuptools')
+source=("https://files.pythonhosted.org/packages/source/c/curtsies/curtsies-$pkgver.tar.gz")
+md5sums=('20e7295c9592b4101915131a685725f0')
+
+prepare() {
+ cd "$srcdir"
+ cp -r curtsies-$pkgver curtsies2-$pkgver
+
+ # 0.3.0 bug?
+ cd "$srcdir/curtsies-$pkgver"
+ sed -i 's/^.*typing.*$//' curtsies.egg-info/requires.txt setup.py
+}
+
+build() {
+ cd "$srcdir/curtsies-$pkgver"
+ python3 setup.py build
+
+ cd "$srcdir/curtsies2-$pkgver"
+ python2 setup.py build
+}
+
+package_python-curtsies() {
+ cd "$srcdir/curtsies-$pkgver"
+ python3 setup.py install --root="$pkgdir/" --prefix=/usr --optimize=0
+ install -Dm644 LICENSE "$pkgdir/usr/share/licenses/python-curtsies/LICENSE"
+}
+
+package_python2-curtsies() {
+ depends=('python2-blessings' 'python2-wcwidth' 'python2-typing')
+ cd "$srcdir/curtsies2-$pkgver"
+ python2 setup.py install --root="$pkgdir/" --prefix=/usr --optimize=0
+ install -Dm644 LICENSE "$pkgdir/usr/share/licenses/python2-curtsies/LICENSE"
+}
More information about the arch-commits
mailing list