Date: Wednesday, April 5, 2023 @ 18:37:59
Author: felixonmars
Revision: 1437896
archrelease: copy trunk to community-staging-any
Added:
python-click/repos/community-staging-any/
python-click/repos/community-staging-any/PKGBUILD
(from rev 1437895, python-click/trunk/PKGBUILD)
----------+
PKGBUILD | 35 +++++++++++++++++++++++++++++++++++
1 file changed, 35 insertions(+)
Copied: python-click/repos/community-staging-any/PKGBUILD (from rev 1437895,
python-click/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2023-04-05 18:37:59 UTC (rev 1437896)
@@ -0,0 +1,35 @@
+# Maintainer: Sven-Hendrik Haase <[email protected]>
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Contributor: Carl George < arch at cgtx dot us >
+
+pkgname=python-click
+_realname=click
+pkgver=8.1.3
+pkgrel=2
+pkgdesc="Simple wrapper around optparse for powerful command line utilities"
+arch=("any")
+url='https://click.palletsprojects.com/'
+license=("BSD")
+depends=("python")
+makedepends=('python-setuptools' 'python-build' 'python-installer'
'python-wheel')
+checkdepends=('python-pytest')
+source=("https://github.com/pallets/click/archive/${pkgver}/$pkgname-$pkgver.tar.gz")
+sha512sums=('29194ee3877e013a2fe1037870522c5b5a78136ca60da9109f29312a3e52c767867f5eec2d90ca385cd0508f77555b9d6ad8f5141dc31900ddc9307a2207a818')
+
+build() {
+ cd "${srcdir}/${_realname}-${pkgver}"
+ python -m build --wheel --no-isolation
+}
+
+check() {
+ cd "${srcdir}/${_realname}-${pkgver}"
+ PYTHONPATH="build/lib" pytest
+}
+
+package() {
+ cd "${srcdir}/${_realname}-${pkgver}"
+ python -m installer --destdir="$pkgdir" dist/*.whl
+ install -Dm 644 "LICENSE.rst" -t "${pkgdir}/usr/share/licenses/${pkgname}"
+}
+
+# vim:set ts=2 sw=2 et: