1 # Maintainer: Jelle van der Waa <jelle@archlinux.org>
2 # Maintainer: Caleb Maclennan <caleb@alerque.com>
3 # Contributor: Eli Schwartz <eschwartz@archlinux.org>
4 # Contributor: Nikola Milinković <nikmil@gmail.com>
5 # Submitter: Xiao-Long Chen <chenxiaolong@cxl.epac.to>
11 pkgdesc="Alternative python regular expression module."
13 url="https://github.com/mrabarnett/mrab-regex"
14 license=('Python' 'Apache')
16 makedepends=('python-build' 'python-installer' 'python-setuptools' 'python-wheel')
18 source=("https://files.pythonhosted.org/packages/source/r/${_pkgbase}/${_pkgbase}-${pkgver}.tar.gz")
19 sha256sums=('7d76a8a1fc9da08296462a18f16620ba73bcbf5909e42383b253ef34d9d5141e')
20 b2sums=('1eb63c85abcf37b83e2d8f03a18ea9ae0f80aed2d8d29b0141e5064ab30067d9146d9ec440b3bc043dfb569a8216349b67354c7b7b3c4faf6f447f4b910128dc')
31 local _pyver=cpython-$(python -c 'import sys; print("".join(map(str, sys.version_info[:2])))')
32 cd "$PWD/build/lib.linux-$CARCH-$_pyver"
33 python -m unittest regex/test_regex.py
39 python -m installer --d "${pkgdir}" dist/*.whl
40 install -Dm644 LICENSE.txt "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE.txt