[arch-commits] Commit in python-click-help-colors/repos (2 files)
Evangelos Foutras
foutrelis at archlinux.org
Mon Nov 9 16:56:02 UTC 2020
Date: Monday, November 9, 2020 @ 16:56:01
Author: foutrelis
Revision: 747707
archrelease: copy trunk to community-staging-any
Added:
python-click-help-colors/repos/community-staging-any/
python-click-help-colors/repos/community-staging-any/PKGBUILD
(from rev 747706, python-click-help-colors/trunk/PKGBUILD)
----------+
PKGBUILD | 42 ++++++++++++++++++++++++++++++++++++++++++
1 file changed, 42 insertions(+)
Copied: python-click-help-colors/repos/community-staging-any/PKGBUILD (from rev 747706, python-click-help-colors/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2020-11-09 16:56:01 UTC (rev 747707)
@@ -0,0 +1,42 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+
+_name=click-help-colors
+pkgname=python-click-help-colors
+pkgver=0.8
+pkgrel=2
+pkgdesc="Colorization of help messages in Click"
+arch=('any')
+url="https://github.com/click-contrib/click-help-colors"
+license=('MIT')
+depends=('python-click')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest')
+source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
+sha512sums=('1fcbdcbffa77268066e2b4a9460660b8636058f36e433b9e11567e7b2859596891c27aa059afb269cf285f7317c74c17f19de2591f13c4a38f5a5e15db9482d9')
+
+prepare() {
+ mv -v "${_name}-$pkgver" "$pkgname-$pkgver"
+}
+
+build() {
+ cd "$pkgname-$pkgver"
+ python setup.py build
+}
+
+check() {
+ cd "$pkgname-$pkgver"
+ export PYTHONPATH="build:${PYTHONPATH}"
+ pytest -v
+}
+
+package() {
+ cd "$pkgname-$pkgver"
+ python setup.py install --skip-build \
+ --optimize=1 \
+ --prefix=/usr \
+ --root="${pkgdir}"
+ install -vDm 644 LICENSE.txt -t "${pkgdir}/usr/share/licenses/${pkgname}"
+ install -vDm 644 README.rst -t "${pkgdir}/usr/share/doc/${pkgname}"
+ install -vDm 644 examples/*.py \
+ -t "${pkgdir}/usr/share/doc/${pkgname}/examples"
+}
More information about the arch-commits
mailing list