[arch-commits] Commit in (4 files)

Levente Polyak anthraxx at gemini.archlinux.org
Tue Mar 8 22:05:35 UTC 2022


    Date: Tuesday, March 8, 2022 @ 22:05:34
  Author: anthraxx
Revision: 1145615

addpkg: python-sortedcollections 2.1.0-1

Added:
  python-sortedcollections/
  python-sortedcollections/repos/
  python-sortedcollections/trunk/
  python-sortedcollections/trunk/PKGBUILD

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

Added: python-sortedcollections/trunk/PKGBUILD
===================================================================
--- python-sortedcollections/trunk/PKGBUILD	                        (rev 0)
+++ python-sortedcollections/trunk/PKGBUILD	2022-03-08 22:05:34 UTC (rev 1145615)
@@ -0,0 +1,35 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+
+_pyname=sortedcollections
+pkgname=python-${_pyname}
+pkgver=2.1.0
+pkgrel=1
+pkgdesc='Sorted Collections Library'
+url='https://github.com/grantjenks/python-sortedcollections'
+arch=('any')
+license=('Apache')
+depends=('python' 'python-sortedcontainers')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest' 'python-pytest-cov')
+source=(${url}/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz)
+sha512sums=('7cb95af1791ab8f8c99847c1b9e0b8c1e7cc7dfe8a9df5db8bb3c96ceb2f15d7351ab4ff081d037d34dbb6c3108f4b575ca22c9e9e911a727d31b9ba3bf975f6')
+b2sums=('5de36155858dc055c9412ff410bd70b489aba292a2956216db95641e10dcb249b98e5c005c4d7c4fd00b25c3315c65b3f43f404737591632ac223a4045b775b5')
+
+build() {
+  cd "${pkgname}-${pkgver}"
+  python setup.py build
+}
+
+check() {
+  cd "${pkgname}-${pkgver}"
+  PYTHONPATH="$PWD/build/lib" pytest
+}
+
+package() {
+  cd "${pkgname}-${pkgver}"
+  python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
+  install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
+  install -Dm 644 README.rst -t "${pkgdir}/usr/share/doc/${pkgname}"
+}
+
+# vim: ts=2 sw=2 et:



More information about the arch-commits mailing list