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

Felix Yan felixonmars at gemini.archlinux.org
Wed Dec 1 14:50:57 UTC 2021


    Date: Wednesday, December 1, 2021 @ 14:50:57
  Author: felixonmars
Revision: 1059398

archrelease: copy trunk to community-staging-any

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

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

Copied: python-ansicolors/repos/community-staging-any/PKGBUILD (from rev 1059397, python-ansicolors/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2021-12-01 14:50:57 UTC (rev 1059398)
@@ -0,0 +1,32 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-ansicolors
+pkgver=1.1.8
+_commit=c965f5b9103c5bd32a1572adb8024ebe83278fb0
+pkgrel=4
+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