[arch-commits] Commit in (4 files)
Jelle van der Waa
jelle at archlinux.org
Fri Jun 16 18:36:59 UTC 2017
Date: Friday, June 16, 2017 @ 18:36:58
Author: jelle
Revision: 237796
python-regex: inital commit
new dep of calibre
Added:
python-regex/
python-regex/repos/
python-regex/trunk/
python-regex/trunk/PKGBUILD
----------+
PKGBUILD | 45 +++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 45 insertions(+)
Added: python-regex/trunk/PKGBUILD
===================================================================
--- python-regex/trunk/PKGBUILD (rev 0)
+++ python-regex/trunk/PKGBUILD 2017-06-16 18:36:58 UTC (rev 237796)
@@ -0,0 +1,45 @@
+# Maintainer: Jelle van der Waa <jelle at archlinux.org>
+# Contributor: Nikola Milinković <nikmil at gmail.com>
+# Submitter: Xiao-Long Chen <chenxiaolong at cxl.epac.to>
+
+pkgbase=python-regex
+pkgname=('python-regex' 'python2-regex')
+pkgname=python-regex
+pkgver=2017.04.23
+pkgrel=2
+pkgdesc="Alternative python regular expression module."
+arch=(any)
+url="https://bitbucket.org/mrabarnett/mrab-regex"
+license=('Python')
+makedepends=('python-setuptools' 'python2-setuptools')
+options=(!emptydirs)
+source=('https://pypi.python.org/packages/c1/8e/50066f0fe05841759327f3cfa40fec8b94da12eab022d480e7c56315dc2f/regex-2017.04.23.tar.gz')
+sha256sums=('ebac6140f097bec2dce310e08b21a46c60fd93a5e18ed31b32dbe5624fc3e6bd')
+
+package_python2-regex() {
+ depends=('python2')
+ conflicts=('python2-regex-hg')
+ pkgdesc="Alternative python regular expression module. (python2 version)"
+
+ cd "${srcdir}/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 "${srcdir}/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/"
+}
More information about the arch-commits
mailing list