[arch-commits] Commit in python-regex/repos (2 files)
Felix Yan
felixonmars at gemini.archlinux.org
Tue Nov 30 20:18:55 UTC 2021
Date: Tuesday, November 30, 2021 @ 20:18:54
Author: felixonmars
Revision: 1057977
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 1057975, python-regex/trunk/PKGBUILD)
----------+
PKGBUILD | 40 ++++++++++++++++++++++++++++++++++++++++
1 file changed, 40 insertions(+)
Copied: python-regex/repos/community-staging-x86_64/PKGBUILD (from rev 1057975, python-regex/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2021-11-30 20:18:54 UTC (rev 1057977)
@@ -0,0 +1,40 @@
+# Maintainer: Jelle van der Waa <jelle at archlinux.org>
+# Maintainer: Eli Schwartz <eschwartz at archlinux.org>
+# Maintainer: Caleb Maclennan <caleb at alerque.com>
+# Contributor: Nikola Milinković <nikmil at gmail.com>
+# Submitter: Xiao-Long Chen <chenxiaolong at cxl.epac.to>
+
+_pkgbase=regex
+pkgname=python-regex
+pkgver=2021.11.10
+pkgrel=2
+pkgdesc="Alternative python regular expression module."
+arch=('x86_64')
+url="https://bitbucket.org/mrabarnett/mrab-regex"
+license=('Python' 'Apache')
+depends=('python')
+makedepends=('python-setuptools')
+options=(!emptydirs)
+source=("https://files.pythonhosted.org/packages/source/r/${_pkgbase}/${_pkgbase}-${pkgver}.tar.gz")
+sha256sums=('f341ee2df0999bfdf7a95e448075effe0db212a59387de1a70690e4acb03d4c6')
+b2sums=('4729067d690033ff3c6dabb4e180d9f46fbf9cb53c4244d7d76a96d90c07c14afd4487fb068d4b4eef17bc8457f8f9de1a8bcdcefd0fe1a6a74eae00e6fabeb4')
+
+build() {
+ cd "regex-${pkgver}"
+
+ python setup.py build
+}
+
+check() {
+ cd "regex-${pkgver}"
+
+ cd build/lib.linux-${CARCH}-3*/
+ python -m unittest regex/test_regex.py
+}
+
+package() {
+ cd "regex-${pkgver}"
+
+ python setup.py install --root="${pkgdir}/" --optimize=1 --skip-build
+ install -Dm644 LICENSE.txt "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE.txt
+}
More information about the arch-commits
mailing list