Date: Thursday, March 23, 2023 @ 08:32:10
Author: alerque
Revision: 1427163
archrelease: copy trunk to community-testing-x86_64
Added:
python-regex/repos/community-testing-x86_64/
python-regex/repos/community-testing-x86_64/PKGBUILD
(from rev 1427162, python-regex/trunk/PKGBUILD)
----------+
PKGBUILD | 41 +++++++++++++++++++++++++++++++++++++++++
1 file changed, 41 insertions(+)
Copied: python-regex/repos/community-testing-x86_64/PKGBUILD (from rev 1427162,
python-regex/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD (rev 0)
+++ community-testing-x86_64/PKGBUILD 2023-03-23 08:32:10 UTC (rev 1427163)
@@ -0,0 +1,41 @@
+# Maintainer: Jelle van der Waa <[email protected]>
+# Maintainer: Caleb Maclennan <[email protected]>
+# Contributor: Eli Schwartz <[email protected]>
+# Contributor: Nikola Milinković <[email protected]>
+# Submitter: Xiao-Long Chen <[email protected]>
+
+_pkgbase=regex
+pkgname=python-regex
+pkgver=2023.3.22
+pkgrel=1
+pkgdesc="Alternative python regular expression module."
+arch=('x86_64')
+url="https://github.com/mrabarnett/mrab-regex"
+license=('Python' 'Apache')
+depends=('python')
+makedepends=('python-build' 'python-installer' 'python-setuptools'
'python-wheel')
+options=(!emptydirs)
+source=("https://files.pythonhosted.org/packages/source/r/${_pkgbase}/${_pkgbase}-${pkgver}.tar.gz")
+sha256sums=('f579a202b90c1110d0894a86b32a89bf550fdb34bdd3f9f550115706be462e19')
+b2sums=('62a7c992f0bdd0342a0dd37d6e28b2511dba0ea790f9684548dbd128a95c580820b3335f537cd8fc27b968e25cfcb4333aaf984caf0b3135aca15d96ae37372b')
+
+build() {
+ cd "regex-${pkgver}"
+
+ python -m build -wn
+}
+
+check() {
+ cd "regex-${pkgver}"
+
+ local _pyver=cpython-$(python -c 'import sys; print("".join(map(str,
sys.version_info[:2])))')
+ cd "$PWD/build/lib.linux-$CARCH-$_pyver"
+ python -m unittest regex/test_regex.py
+}
+
+package() {
+ cd "regex-${pkgver}"
+
+ python -m installer --d "${pkgdir}" dist/*.whl
+ install -Dm644 LICENSE.txt
"${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE.txt
+}