Date: Wednesday, April 5, 2023 @ 17:10:52
Author: felixonmars
Revision: 1437801
archrelease: copy trunk to community-staging-any
Added:
python-more-itertools/repos/community-staging-any/
python-more-itertools/repos/community-staging-any/PKGBUILD
(from rev 1437799, python-more-itertools/trunk/PKGBUILD)
----------+
PKGBUILD | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 51 insertions(+)
Copied: python-more-itertools/repos/community-staging-any/PKGBUILD (from rev
1437799, python-more-itertools/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2023-04-05 17:10:52 UTC (rev 1437801)
@@ -0,0 +1,51 @@
+# Maintainer: George Rawlinson <[email protected]>
+# Maintainer: Kyle Keen <[email protected]>
+# Contributor: Germán Osella Massa <[email protected]>
+
+pkgname=python-more-itertools
+pkgver=9.1.1
+pkgrel=2
+pkgdesc='More routines for operating on iterables, beyond itertools'
+arch=('any')
+url='https://github.com/more-itertools/more-itertools'
+license=('MIT')
+depends=('python')
+makedepends=(
+ 'git'
+ 'python-build'
+ 'python-installer'
+ 'python-wheel'
+ 'python-flit-core'
+)
+_commit='89d58c2ec089f3df54ed6cc9279949b8e2bbcd29'
+source=("$pkgname::git+$url#commit=$_commit")
+b2sums=('SKIP')
+
+pkgver() {
+ cd "$pkgname"
+
+ git describe --tags | sed 's/^v//'
+}
+
+build() {
+ cd "$pkgname"
+
+ python -m build --wheel --no-isolation
+}
+
+check() {
+ cd "$pkgname"
+
+ python -m unittest
+}
+
+package() {
+ cd "$pkgname"
+
+ python -m installer --destdir="$pkgdir" dist/*.whl
+
+ # license
+ install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE
+}
+
+# vim:set ts=2 sw=2 et: