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

Evangelos Foutras foutrelis at gemini.archlinux.org
Tue Nov 30 20:21:55 UTC 2021


    Date: Tuesday, November 30, 2021 @ 20:21:55
  Author: foutrelis
Revision: 1058112

archrelease: copy trunk to community-staging-any

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

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

Copied: python-termstyle/repos/community-staging-any/PKGBUILD (from rev 1058106, python-termstyle/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2021-11-30 20:21:55 UTC (rev 1058112)
@@ -0,0 +1,33 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-termstyle
+pkgver=0.1.11
+_commit=ed18c5ed4bfee21267843f758094a5620d5f7929
+pkgrel=8
+pkgdesc="Console colouring for python"
+url="https://github.com/timbertson/termstyle"
+license=('BSD')
+arch=('any')
+depends=('python-setuptools')
+source=("$pkgname-$_commit.tar.gz::https://github.com/timbertson/termstyle/archive/$_commit.tar.gz")
+sha512sums=('02849055614caf37d3b836bef52b6c5ad281570ad5577aa253e079ecd3d82ed1f2168394edbf4760e1a9ba16e7f23aecd7191c39d3dc1de2aeb4ab9599b0717a')
+
+prepare() {
+  mv termstyle-{$_commit,$pkgver}
+}
+
+build() {
+  cd "$srcdir"/termstyle-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd "$srcdir"/termstyle-$pkgver
+  python test3.py
+}
+
+package() {
+  cd termstyle-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}



More information about the arch-commits mailing list