[arch-commits] Commit in python-bintrees/repos (2 files)

Levente Polyak anthraxx at gemini.archlinux.org
Fri Aug 19 22:23:32 UTC 2022


    Date: Friday, August 19, 2022 @ 22:23:32
  Author: anthraxx
Revision: 1271007

archrelease: copy trunk to community-x86_64

Added:
  python-bintrees/repos/community-x86_64/
  python-bintrees/repos/community-x86_64/PKGBUILD
    (from rev 1271006, python-bintrees/trunk/PKGBUILD)

----------+
 PKGBUILD |   35 +++++++++++++++++++++++++++++++++++
 1 file changed, 35 insertions(+)

Copied: python-bintrees/repos/community-x86_64/PKGBUILD (from rev 1271006, python-bintrees/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2022-08-19 22:23:32 UTC (rev 1271007)
@@ -0,0 +1,35 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+
+_pyname=bintrees
+pkgname=python-bintrees
+pkgver=2.2.0
+pkgrel=1
+pkgdesc='Package provides Binary-, RedBlack- and AVL-Trees'
+url='https://github.com/mozman/bintrees'
+arch=('x86_64')
+license=('custom')
+depends=('python')
+makedepends=('python-build' 'python-installer' 'python-wheel' 'python-setuptools' 'cython')
+source=("${url}/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz")
+sha512sums=('640b9979ff9ef25fedbc59c9203363039e732b1ecbeda6475126c7c872207e9b790b7c6c8e67457c029f0d5397c28e6767c1c49061693135206eece98bb203bf')
+b2sums=('4a4dce2529a0eb3ac2c9d34e2170e58517f87d82590cf910903e25dbb0c97e2d8b67c4fe46ac3ab664d46769e222095d2baf26fcf04925796384d71681fe80f5')
+
+build() {
+  cd "${_pyname}-${pkgver}"
+  python setup.py build_ext -i
+  python -m build --wheel --no-isolation
+}
+
+check() {
+  cd "${_pyname}-${pkgver}"
+  python -m unittest discover
+}
+
+package() {
+  cd "${_pyname}-${pkgver}"
+  python -m installer --destdir="${pkgdir}" dist/*.whl
+  install -Dm 644 README.rst -t "${pkgdir}/usr/share/doc/${pkgname}"
+  install -Dm 644 LICENSE.txt -t "${pkgdir}/usr/share/licenses/${pkgname}"
+}
+
+# vim: ts=2 sw=2 et:



More information about the arch-commits mailing list