[arch-commits] Commit in python-rich/repos (staging-any staging-any/PKGBUILD)
Frederik Schwan
freswa at gemini.archlinux.org
Tue Dec 7 11:31:38 UTC 2021
Date: Tuesday, December 7, 2021 @ 11:31:38
Author: freswa
Revision: 1065512
archrelease: copy trunk to staging-any
Added:
python-rich/repos/staging-any/
python-rich/repos/staging-any/PKGBUILD
(from rev 1065511, python-rich/trunk/PKGBUILD)
----------+
PKGBUILD | 25 +++++++++++++++++++++++++
1 file changed, 25 insertions(+)
Copied: python-rich/repos/staging-any/PKGBUILD (from rev 1065511, python-rich/trunk/PKGBUILD)
===================================================================
--- staging-any/PKGBUILD (rev 0)
+++ staging-any/PKGBUILD 2021-12-07 11:31:38 UTC (rev 1065512)
@@ -0,0 +1,25 @@
+# Maintainer: Frederik Schwan <freswa at archlinux dot org>
+# Contributor: Hao Long <imlonghao at archlinuxcn.org>
+
+pkgname=python-rich
+pkgver=10.15.2
+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-pip' 'python-poetry')
+source=("https://github.com/willmcgugan/rich/archive/v${pkgver}/rich-${pkgver}.tar.gz")
+b2sums=('7fe05eb357e5137319764b0d751c3bc68f8545e391575a9a360b252c395714ecb8ad7b944e7c77e74990413cb6bfb2a6c6db0fb8e72eb098f91c8d5d86bc9f8a')
+
+build() {
+ cd rich-${pkgver}
+ poetry build --format wheel
+}
+
+package() {
+ cd rich-${pkgver}
+ PIP_CONFIG_FILE=/dev/null pip install --isolated --root="${pkgdir}" --ignore-installed --no-deps dist/*.whl
+ install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
+}
More information about the arch-commits
mailing list