[arch-commits] Commit in python-colorama/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Thu Oct 11 06:24:04 UTC 2018
Date: Thursday, October 11, 2018 @ 06:24:03
Author: felixonmars
Revision: 392134
archrelease: copy trunk to community-testing-any
Added:
python-colorama/repos/community-testing-any/
python-colorama/repos/community-testing-any/PKGBUILD
(from rev 392133, python-colorama/trunk/PKGBUILD)
----------+
PKGBUILD | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 55 insertions(+)
Copied: python-colorama/repos/community-testing-any/PKGBUILD (from rev 392133, python-colorama/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD (rev 0)
+++ community-testing-any/PKGBUILD 2018-10-11 06:24:03 UTC (rev 392134)
@@ -0,0 +1,55 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Alexander Duscheleit <jinks at archlinux.us>
+
+pkgbase=python-colorama
+pkgname=('python-colorama' 'python2-colorama')
+pkgver=0.4.0
+pkgrel=1
+pkgdesc="Python API for cross-platform colored terminal text."
+arch=('any')
+url="http://pypi.python.org/pypi/colorama"
+license=('BSD')
+makedepends=('python-setuptools' 'python2-setuptools')
+checkdepends=('python-mock' 'python2-mock')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/tartley/colorama/archive/$pkgver.tar.gz")
+sha512sums=('e2214c0a4ce1dd5515cf12cbb91220d2314da747b1a1246641117e70ea81b162cb4748b2b5dff049e102540470617a0076a3afff64bfe67158bf7bd95e1cc6f8')
+
+prepare() {
+ cp -a colorama-$pkgver{,-py2}
+}
+
+build() {
+ cd "$srcdir"/colorama-$pkgver
+ python setup.py build
+
+ cd "$srcdir"/colorama-$pkgver-py2
+ python2 setup.py build
+}
+
+check() {
+ cd "$srcdir"/colorama-$pkgver
+ python -m unittest discover -p *_test.py || warning "Tests failed"
+
+ cd "$srcdir"/colorama-$pkgver-py2
+ python2 -m unittest discover -p *_test.py || warning "Tests failed"
+}
+
+package_python-colorama() {
+ depends=('python')
+
+ cd colorama-$pkgver
+ python setup.py install --root="$pkgdir" --optimize=1
+
+ install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt
+}
+
+package_python2-colorama() {
+ depends=('python2')
+
+ cd colorama-$pkgver-py2
+ python2 setup.py install --root="$pkgdir" --optimize=1
+
+ install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt
+}
+
+# vim:set ts=2 sw=2 et:
More information about the arch-commits
mailing list