Date: Sunday, July 8, 2018 @ 14:00:36 Author: foutrelis Revision: 354928
archrelease: copy trunk to community-staging-any Added: python-curtsies/repos/community-staging-any/ python-curtsies/repos/community-staging-any/PKGBUILD (from rev 354927, python-curtsies/trunk/PKGBUILD) ----------+ PKGBUILD | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) Copied: python-curtsies/repos/community-staging-any/PKGBUILD (from rev 354927, python-curtsies/trunk/PKGBUILD) =================================================================== --- community-staging-any/PKGBUILD (rev 0) +++ community-staging-any/PKGBUILD 2018-07-08 14:00:36 UTC (rev 354928) @@ -0,0 +1,46 @@ +# $Id$ +# Maintainer: Kyle Keen <keen...@gmail.com> + +pkgbase=python-curtsies +pkgname=(python-curtsies python2-curtsies) +_pkgname=curtsies +pkgver=0.3.0 +pkgrel=2 +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" +}