[arch-commits] Commit in python-regex/repos (2 files)

Caleb Maclennan alerque at gemini.archlinux.org
Sat Jun 11 07:39:32 UTC 2022


    Date: Saturday, June 11, 2022 @ 07:39:31
  Author: alerque
Revision: 1232121

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 1232119, python-regex/trunk/PKGBUILD)

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

Copied: python-regex/repos/community-testing-x86_64/PKGBUILD (from rev 1232119, python-regex/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD	                        (rev 0)
+++ community-testing-x86_64/PKGBUILD	2022-06-11 07:39:31 UTC (rev 1232121)
@@ -0,0 +1,40 @@
+# Maintainer: Jelle van der Waa <jelle at archlinux.org>
+# Maintainer: Caleb Maclennan <caleb at alerque.com>
+# Contributor: Eli Schwartz <eschwartz at archlinux.org>
+# Contributor: Nikola Milinković <nikmil at gmail.com>
+# Submitter: Xiao-Long Chen <chenxiaolong at cxl.epac.to>
+
+_pkgbase=regex
+pkgname=python-regex
+pkgver=2022.6.2
+pkgrel=1
+pkgdesc="Alternative python regular expression module."
+arch=('x86_64')
+url="https://bitbucket.org/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=('f7b43acb2c46fb2cd506965b2d9cf4c5e64c9c612bac26c1187933c7296bf08c')
+b2sums=('48587a91366203301c517dc9cfe4f09e70905924484b906481bc89cf376854d406871312e154ac8b5833feeb50848636a95fdf99511df4feda4f16794a70856b')
+
+build() {
+  cd "regex-${pkgver}"
+
+  python -m build -wn
+}
+
+check() {
+  cd "regex-${pkgver}"
+
+  cd build/lib.linux-${CARCH}-3*/
+  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
+}



More information about the arch-commits mailing list