[arch-commits] Commit in python-regex/repos/community-x86_64 (PKGBUILD PKGBUILD)
Eli Schwartz
eschwartz at archlinux.org
Fri Mar 6 05:34:15 UTC 2020
Date: Friday, March 6, 2020 @ 05:34:14
Author: eschwartz
Revision: 590906
archrelease: copy trunk to community-x86_64
Added:
python-regex/repos/community-x86_64/PKGBUILD
(from rev 590905, python-regex/trunk/PKGBUILD)
Deleted:
python-regex/repos/community-x86_64/PKGBUILD
----------+
PKGBUILD | 118 +++++++++++++++++++++++++++++++------------------------------
1 file changed, 60 insertions(+), 58 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2020-03-06 05:33:56 UTC (rev 590905)
+++ PKGBUILD 2020-03-06 05:34:14 UTC (rev 590906)
@@ -1,58 +0,0 @@
-# Maintainer: Jelle van der Waa <jelle at archlinux.org>
-# Maintainer: Eli Schwartz <eschwartz at archlinux.org>
-# Contributor: Nikola Milinković <nikmil at gmail.com>
-# Submitter: Xiao-Long Chen <chenxiaolong at cxl.epac.to>
-
-_pkgbase=regex
-pkgbase=python-regex
-pkgname=('python-regex' 'python2-regex')
-pkgver=2020.1.8
-pkgrel=1
-pkgdesc="Alternative python regular expression module."
-arch=('x86_64')
-url="https://bitbucket.org/mrabarnett/mrab-regex"
-license=('Python')
-makedepends=('python-setuptools' 'python2-setuptools')
-options=(!emptydirs)
-source=("https://files.pythonhosted.org/packages/source/r/${_pkgbase}/${_pkgbase}-${pkgver}.tar.gz")
-sha256sums=('d0f424328f9822b0323b3b6f2e4b9c90960b24743d220763c7f07071e0778351')
-b2sums=('08eac3ebe6f4f2ac33959ee885fc6671ab49e76114d432a987f257b26add7358cf7b73f76945c9a7eea286454167ed2cc24b6959d2cd408599b1b6dcdbb851db')
-
-build() {
- cd "regex-${pkgver}"
-
- python setup.py build
- python2 setup.py build
-}
-
-check() {
- cd "regex-${pkgver}"
-
- pushd build/lib.linux-${CARCH}-3*/
- python -c 'from regex.test_regex import test_main; test_main()'
- popd
-
- pushd build/lib.linux-${CARCH}-2*/
- python2 -c 'from regex.test_regex import test_main; test_main()'
- popd
-}
-
-package_python2-regex() {
- depends=('python2')
- pkgdesc="Alternative python regular expression module. (python2 version)"
-
- cd "regex-${pkgver}"
- python2 setup.py install --root="${pkgdir}/" --optimize=1 --skip-build
-
- sed -n '1,/^$/p' regex_2/regex.py | install -Dm644 /dev/stdin "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
-}
-
-package_python-regex() {
- depends=('python')
- pkgdesc="Alternative python regular expression module. (python3 version)"
-
- cd "regex-${pkgver}"
- python setup.py install --root="${pkgdir}/" --optimize=1 --skip-build
-
- sed -n '1,/^$/p' regex_3/regex.py | install -Dm644 /dev/stdin "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
-}
Copied: python-regex/repos/community-x86_64/PKGBUILD (from rev 590905, python-regex/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2020-03-06 05:34:14 UTC (rev 590906)
@@ -0,0 +1,60 @@
+# Maintainer: Jelle van der Waa <jelle at archlinux.org>
+# Maintainer: Eli Schwartz <eschwartz at archlinux.org>
+# Contributor: Nikola Milinković <nikmil at gmail.com>
+# Submitter: Xiao-Long Chen <chenxiaolong at cxl.epac.to>
+
+_pkgbase=regex
+pkgbase=python-regex
+pkgname=('python-regex' 'python2-regex')
+pkgver=2020.2.20
+pkgrel=1
+pkgdesc="Alternative python regular expression module."
+arch=('x86_64')
+url="https://bitbucket.org/mrabarnett/mrab-regex"
+license=('Python')
+makedepends=('python-setuptools' 'python2-setuptools')
+# https://bitbucket.org/mrabarnett/mrab-regex/issues/366/tests-use-internal-test-module-instead-of
+checkdepends=('python-tests')
+options=(!emptydirs)
+source=("https://files.pythonhosted.org/packages/source/r/${_pkgbase}/${_pkgbase}-${pkgver}.tar.gz")
+sha256sums=('9e9624440d754733eddbcd4614378c18713d2d9d0dc647cf9c72f64e39671be5')
+b2sums=('cc23ec03dc83068320155e4e660ee27e00935d179566d007e21879506f80dd67b2c1abdd6a4dac789a239474a8b3358f1fcbcee53af91b3d2b7ef71ce19c7ab1')
+
+build() {
+ cd "regex-${pkgver}"
+
+ python setup.py build
+ python2 setup.py build
+}
+
+check() {
+ cd "regex-${pkgver}"
+
+ pushd build/lib.linux-${CARCH}-3*/
+ python -c 'from regex.test_regex import test_main; test_main()'
+ popd
+
+ pushd build/lib.linux-${CARCH}-2*/
+ python2 -c 'from regex.test_regex import test_main; test_main()'
+ popd
+}
+
+package_python2-regex() {
+ depends=('python2')
+ pkgdesc="Alternative python regular expression module. (python2 version)"
+
+ cd "regex-${pkgver}"
+ python2 setup.py install --root="${pkgdir}/" --optimize=1 --skip-build
+
+ sed -n '1,/^$/p' regex_2/regex.py | install -Dm644 /dev/stdin "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
+}
+
+package_python-regex() {
+ depends=('python')
+ pkgdesc="Alternative python regular expression module. (python3 version)"
+
+ cd "regex-${pkgver}"
+ python setup.py install --root="${pkgdir}/" --optimize=1 --skip-build
+
+ sed -n '1,/^$/p' regex_3/regex.py | install -Dm644 /dev/stdin "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
+}
More information about the arch-commits
mailing list