Date: Tuesday, March 8, 2022 @ 22:05:41 Author: anthraxx Revision: 1145616
archrelease: copy trunk to community-any Added: python-sortedcollections/repos/community-any/ python-sortedcollections/repos/community-any/PKGBUILD (from rev 1145615, python-sortedcollections/trunk/PKGBUILD) ----------+ PKGBUILD | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) Copied: python-sortedcollections/repos/community-any/PKGBUILD (from rev 1145615, python-sortedcollections/trunk/PKGBUILD) =================================================================== --- community-any/PKGBUILD (rev 0) +++ community-any/PKGBUILD 2022-03-08 22:05:41 UTC (rev 1145616) @@ -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: