[arch-commits] Commit in python-sphinx-click/repos (2 files)
David Runge
dvzrv at archlinux.org
Sun Dec 6 18:19:06 UTC 2020
Date: Sunday, December 6, 2020 @ 18:19:06
Author: dvzrv
Revision: 771066
archrelease: copy trunk to community-any
Added:
python-sphinx-click/repos/community-any/
python-sphinx-click/repos/community-any/PKGBUILD
(from rev 771065, python-sphinx-click/trunk/PKGBUILD)
----------+
PKGBUILD | 41 +++++++++++++++++++++++++++++++++++++++++
1 file changed, 41 insertions(+)
Copied: python-sphinx-click/repos/community-any/PKGBUILD (from rev 771065, python-sphinx-click/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD (rev 0)
+++ community-any/PKGBUILD 2020-12-06 18:19:06 UTC (rev 771066)
@@ -0,0 +1,41 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+
+_name=sphinx-click
+pkgname=python-sphinx-click
+pkgver=2.5.0
+pkgrel=2
+pkgdesc="Sphinx plugin to automatically document click-based applications"
+arch=('any')
+url="https://github.com/click-contrib/sphinx-click"
+license=('MIT')
+depends=('python-pbr' 'python-sphinx')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest' 'python-click')
+source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
+sha512sums=('0071bacdbc874d6fbe5dd4bffca0b3f5cb884e7ceda81bc2e08e5b6bc10659824c0d007bd6688dc50ec3dfd40ffa8c9ac7334c71ec244ae5c19d4089de813410')
+b2sums=('b2292ca4f84fea919c57fe78d89aad78ecb5fcbe3e1ea42c9e854c52e1488a74afb9a46bff3d2d9b6bac6c364ddc99e360616e9573e8510f78fbec83d5e2cb59')
+
+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 \
+ --root="${pkgdir}"
+ install -vDm 644 {AUTHORS,ChangeLog,README.rst} -t "${pkgdir}/usr/share/doc/${pkgname}"
+ install -vDm 644 docs/*.rst -t "${pkgdir}/usr/share/doc/${pkgname}/docs/"
+ install -vDm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
+}
More information about the arch-commits
mailing list