Date: Thursday, April 6, 2023 @ 13:00:43
Author: felixonmars
Revision: 1438743
archrelease: copy trunk to community-staging-x86_64
Added:
python-regex/repos/community-staging-x86_64/
python-regex/repos/community-staging-x86_64/PKGBUILD
(from rev 1438741, python-regex/trunk/PKGBUILD)
----------+
PKGBUILD | 41 +++++++++++++++++++++++++++++++++++++++++
1 file changed, 41 insertions(+)
Copied: python-regex/repos/community-staging-x86_64/PKGBUILD (from rev 1438741,
python-regex/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2023-04-06 13:00:43 UTC (rev 1438743)
@@ -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.23
+pkgrel=2
+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=('dc80df325b43ffea5cdea2e3eaa97a44f3dd298262b1c7fe9dbb2a9522b956a7')
+b2sums=('87271765ce6b3c8a96a79e86a2b2e907a9a97e55c78c38d117b05df2fb5626af3ba90ecb55ccde6cb745eba00da2528bb0b6d21dc759c3040c37f6a0cc647476')
+
+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
+}