Date: Thursday, February 21, 2019 @ 15:08:39 Author: felixonmars Revision: 435108
archrelease: copy trunk to community-testing-any Added: python-crayons/repos/community-testing-any/ python-crayons/repos/community-testing-any/PKGBUILD (from rev 435107, python-crayons/trunk/PKGBUILD) ----------+ PKGBUILD | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) Copied: python-crayons/repos/community-testing-any/PKGBUILD (from rev 435107, python-crayons/trunk/PKGBUILD) =================================================================== --- community-testing-any/PKGBUILD (rev 0) +++ community-testing-any/PKGBUILD 2019-02-21 15:08:39 UTC (rev 435108) @@ -0,0 +1,43 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> + +pkgbase=python-crayons +pkgname=('python-crayons' 'python2-crayons') +pkgver=0.2.0 +pkgrel=1 +pkgdesc='TextUI colors for Python' +arch=('any') +license=('MIT') +url='https://github.com/kennethreitz/crayons' +makedepends=('python-setuptools' 'python2-setuptools' 'python-colorama' 'python2-colorama') +source=("$pkgbase-$pkgver.tar.gz::https://github.com/kennethreitz/crayons/archive/v$pkgver.tar.gz") +sha512sums=('6fc3798c8f389adff7292d20de301e4393ea133db07b63b76a1cdc657e1e114144257081511294c3b924f653e21379526b564dd715174a9c6f16ba17152b665d') + +prepare() { + cp -a crayons-$pkgver{,-py2} +} + +build() { + cd "$srcdir"/crayons-$pkgver + python setup.py build + + cd "$srcdir"/crayons-$pkgver-py2 + python2 setup.py build +} + +package_python-crayons() { + depends=('python-colorama') + + cd crayons-$pkgver + python setup.py install --root="$pkgdir" --optimize=1 + # install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE +} + +package_python2-crayons() { + depends=('python2-colorama') + + cd crayons-$pkgver-py2 + python2 setup.py install --root="$pkgdir" --optimize=1 + # install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE +} + +# vim:set ts=2 sw=2 et: