[arch-commits] Commit in python-regex/repos/community-x86_64 (PKGBUILD PKGBUILD)
Eli Schwartz
eschwartz at archlinux.org
Wed Jan 10 22:46:27 UTC 2018
Date: Wednesday, January 10, 2018 @ 22:46:26
Author: eschwartz
Revision: 281204
archrelease: copy trunk to community-x86_64
Added:
python-regex/repos/community-x86_64/PKGBUILD
(from rev 281203, python-regex/trunk/PKGBUILD)
Deleted:
python-regex/repos/community-x86_64/PKGBUILD
----------+
PKGBUILD | 113 +++++++++++++++++++++++++++++++++++--------------------------
1 file changed, 66 insertions(+), 47 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2018-01-10 22:45:34 UTC (rev 281203)
+++ PKGBUILD 2018-01-10 22:46:26 UTC (rev 281204)
@@ -1,47 +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')
-pkgname=python-regex
-pkgver=2018.01.10
-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://pypi.io/packages/source/r/${_pkgbase}/${_pkgbase}-${pkgver}.tar.gz)
-sha256sums=('139678fc013b75e486e580c39b4c52d085ed7362e400960f8be1711a414f16b5')
-
-package_python2-regex() {
- depends=('python2')
- conflicts=('python2-regex-hg')
- pkgdesc="Alternative python regular expression module. (python2 version)"
-
- cd "regex-${pkgver}"
- python2 setup.py install --root="${pkgdir}/" --optimize=1
-
- install -v -m755 -d "${pkgdir}/usr/share/doc/python2-regex"
- install -v -m644 ./docs/Features.html "${pkgdir}/usr/share/doc/python2-regex/"
- install -v -m644 ./docs/Features.rst "${pkgdir}/usr/share/doc/python2-regex/"
- install -v -m644 ./docs/UnicodeProperties.txt "${pkgdir}/usr/share/doc/python2-regex/"
-}
-
-package_python-regex() {
- depends=('python')
- conflicts=('python-regex-hg')
- pkgdesc="Alternative python regular expression module. (python3 version)"
-
- cd "regex-${pkgver}"
- python setup.py install --root="${pkgdir}/" --optimize=1
-
- install -v -m755 -d "${pkgdir}/usr/share/doc/python-regex"
- install -v -m644 ./docs/Features.html "${pkgdir}/usr/share/doc/python-regex/"
- install -v -m644 ./docs/Features.rst "${pkgdir}/usr/share/doc/python-regex/"
- install -v -m644 ./docs/UnicodeProperties.txt "${pkgdir}/usr/share/doc/python-regex/"
-}
Copied: python-regex/repos/community-x86_64/PKGBUILD (from rev 281203, python-regex/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2018-01-10 22:46:26 UTC (rev 281204)
@@ -0,0 +1,66 @@
+# 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')
+pkgname=python-regex
+pkgver=2018.01.10
+pkgrel=2
+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://pypi.io/packages/source/r/${_pkgbase}/${_pkgbase}-${pkgver}.tar.gz)
+sha256sums=('139678fc013b75e486e580c39b4c52d085ed7362e400960f8be1711a414f16b5')
+
+build() {
+ cd "regex-${pkgver}"
+
+ python setup.py build
+ python2 setup.py build
+}
+
+check() {
+ cd "regex-${pkgver}"
+
+ pushd build/lib.linux-${CARCH}-3*/
+ python test_regex.py
+ popd
+
+ pushd build/lib.linux-${CARCH}-2*/
+ python2 test_regex.py
+ popd
+}
+
+package_python2-regex() {
+ depends=('python2')
+ conflicts=('python2-regex-hg')
+ pkgdesc="Alternative python regular expression module. (python2 version)"
+
+ cd "regex-${pkgver}"
+ python2 setup.py install --root="${pkgdir}/" --optimize=1 --skip-build
+
+ install -v -m755 -d "${pkgdir}/usr/share/doc/python2-regex"
+ install -v -m644 ./docs/Features.html "${pkgdir}/usr/share/doc/python2-regex/"
+ install -v -m644 ./docs/Features.rst "${pkgdir}/usr/share/doc/python2-regex/"
+ install -v -m644 ./docs/UnicodeProperties.txt "${pkgdir}/usr/share/doc/python2-regex/"
+}
+
+package_python-regex() {
+ depends=('python')
+ conflicts=('python-regex-hg')
+ pkgdesc="Alternative python regular expression module. (python3 version)"
+
+ cd "regex-${pkgver}"
+ python setup.py install --root="${pkgdir}/" --optimize=1 --skip-build
+
+ install -v -m755 -d "${pkgdir}/usr/share/doc/python-regex"
+ install -v -m644 ./docs/Features.html "${pkgdir}/usr/share/doc/python-regex/"
+ install -v -m644 ./docs/Features.rst "${pkgdir}/usr/share/doc/python-regex/"
+ install -v -m644 ./docs/UnicodeProperties.txt "${pkgdir}/usr/share/doc/python-regex/"
+}
More information about the arch-commits
mailing list