[arch-commits] Commit in python-ansicolors/repos (2 files)

Felix Yan felixonmars at archlinux.org
Tue Nov 10 04:12:21 UTC 2020


    Date: Tuesday, November 10, 2020 @ 04:12:20
  Author: felixonmars
Revision: 748553

archrelease: copy trunk to community-staging-any

Added:
  python-ansicolors/repos/community-staging-any/
  python-ansicolors/repos/community-staging-any/PKGBUILD
    (from rev 748551, python-ansicolors/trunk/PKGBUILD)

----------+
 PKGBUILD |   32 ++++++++++++++++++++++++++++++++
 1 file changed, 32 insertions(+)

Copied: python-ansicolors/repos/community-staging-any/PKGBUILD (from rev 748551, python-ansicolors/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2020-11-10 04:12:20 UTC (rev 748553)
@@ -0,0 +1,32 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-ansicolors
+pkgver=1.1.8
+_commit=c965f5b9103c5bd32a1572adb8024ebe83278fb0
+pkgrel=2
+pkgdesc="ANSI colors for Python"
+url="https://github.com/jonathaneunice/colors"
+license=('ISC')
+arch=('any')
+depends=('python')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest')
+source=("https://github.com/jonathaneunice/colors/archive/$_commit/$pkgname-$_commit.tar.gz")
+sha512sums=('f60770496614b75fc2a6bab15c55a87c245ac233c907708572e76d4701690895b3a350b7ab2934304262a8e9076fbff64a9792c2345fe5994af0c6c09209e6a2')
+
+build() {
+  cd colors-$_commit
+  python setup.py build
+}
+
+check() {
+  cd colors-$_commit
+  python -m pytest
+}
+
+package() {
+  cd colors-$_commit
+  python setup.py install --root="$pkgdir" --optimize=1
+
+  install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
+}



More information about the arch-commits mailing list