[arch-commits] Commit in python-rich/repos (staging-any staging-any/PKGBUILD)
Frederik Schwan
freswa at archlinux.org
Tue Nov 10 14:35:00 UTC 2020
Date: Tuesday, November 10, 2020 @ 14:35:00
Author: freswa
Revision: 749545
archrelease: copy trunk to staging-any
Added:
python-rich/repos/staging-any/
python-rich/repos/staging-any/PKGBUILD
(from rev 749544, python-rich/trunk/PKGBUILD)
----------+
PKGBUILD | 31 +++++++++++++++++++++++++++++++
1 file changed, 31 insertions(+)
Copied: python-rich/repos/staging-any/PKGBUILD (from rev 749544, python-rich/trunk/PKGBUILD)
===================================================================
--- staging-any/PKGBUILD (rev 0)
+++ staging-any/PKGBUILD 2020-11-10 14:35:00 UTC (rev 749545)
@@ -0,0 +1,31 @@
+# Maintainer: Frederik Schwan <freswa at archlinux dot org>
+# Contributor: Hao Long <imlonghao at archlinuxcn.org>
+
+pkgname=python-rich
+_name=rich
+pkgver=9.2.0
+pkgrel=1
+pkgdesc='Render rich text, tables, progress bars, syntax highlighting, markdown and more to the terminal'
+arch=(any)
+url='https://github.com/willmcgugan/rich'
+license=('MIT')
+depends=('python-colorama' 'python-pygments' 'python-typing_extensions' 'python-commonmark')
+makedepends=('python-setuptools' 'python-dephell')
+source=("https://github.com/willmcgugan/rich/archive/v${pkgver}/rich-${pkgver}.tar.gz")
+b2sums=('d041962ef1281f1f2bb071a29c96c26d36de042ad8531cf0e44408eb3cb0f9d745f69cae408ee9d296f83e3037cae973b86903c6c9a85202207f67828f601637')
+
+prepare() {
+ cd rich-${pkgver}
+ dephell deps convert --from pyproject.toml --to setup.py
+}
+
+build() {
+ cd rich-${pkgver}
+ python3 setup.py build
+}
+
+package() {
+ cd rich-${pkgver}
+ python3 setup.py install --root="${pkgdir}" --optimize=1 --skip-build
+ install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
+}
More information about the arch-commits
mailing list