diff options
-rw-r--r-- | pcr/python-regex/PKGBUILD | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/pcr/python-regex/PKGBUILD b/pcr/python-regex/PKGBUILD new file mode 100644 index 000000000..c4b052f14 --- /dev/null +++ b/pcr/python-regex/PKGBUILD @@ -0,0 +1,45 @@ +# Maintainer: Jelle van der Waa <jelle@archlinux.org> +# Contributor: Nikola Milinković <nikmil@gmail.com> +# Submitter: Xiao-Long Chen <chenxiaolong@cxl.epac.to> + +pkgbase=python-regex +pkgname=('python-regex' 'python2-regex') +pkgname=python-regex +pkgver=2017.04.23 +pkgrel=2.parabola1 +pkgdesc="Alternative python regular expression module." +arch=('x86_64' 'i686' 'armv7h') +url="https://bitbucket.org/mrabarnett/mrab-regex" +license=('PSFL') +makedepends=('python-setuptools' 'python2-setuptools') +options=(!emptydirs) +source=('https://pypi.python.org/packages/c1/8e/50066f0fe05841759327f3cfa40fec8b94da12eab022d480e7c56315dc2f/regex-2017.04.23.tar.gz') +sha512sums=('fc0b7de68d687c9bcc69b0564aac2c0ce33632ea8c04882cae9c3eee46a96e0e8c40bc80a672f3ee47e60d98fe30fabf1f8def2f4962465040713c784cd90ac4') + +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/" +} |