From 3bf92243e3e5c4a91d46ff6e59abc62299376193 Mon Sep 17 00:00:00 2001 From: Britney Fransen Date: Sun, 16 Jul 2017 15:50:48 +0000 Subject: python-regex: initial inclusion. dep of flexget --- abs/core/python_modules/python-regex/PKGBUILD | 46 ++++++++++++++++++++++++ abs/core/python_modules/python-regex/__changelog | 1 + 2 files changed, 47 insertions(+) create mode 100644 abs/core/python_modules/python-regex/PKGBUILD create mode 100644 abs/core/python_modules/python-regex/__changelog diff --git a/abs/core/python_modules/python-regex/PKGBUILD b/abs/core/python_modules/python-regex/PKGBUILD new file mode 100644 index 0000000..57f7fb6 --- /dev/null +++ b/abs/core/python_modules/python-regex/PKGBUILD @@ -0,0 +1,46 @@ +# Maintainer: Jelle van der Waa +# Contributor: Nikola Milinković +# Submitter: Xiao-Long Chen + +_pkgbase=regex +pkgbase=python-regex +pkgname=('python2-regex') +pkgname=python-regex +pkgver=2017.07.11 +pkgrel=1 +pkgdesc="Alternative python regular expression module." +arch=('x86_64' 'i686') +url="https://bitbucket.org/mrabarnett/mrab-regex" +license=('Python') +makedepends=('python2-setuptools') +options=(!emptydirs) +source=(https://pypi.io/packages/source/r/${_pkgbase}/${_pkgbase}-${pkgver}.tar.gz) +sha256sums=('dbda8bdc31a1c85445f1a1b29d04abda46e5c690f8f933a9cc3a85a358969616') + +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/" +} diff --git a/abs/core/python_modules/python-regex/__changelog b/abs/core/python_modules/python-regex/__changelog new file mode 100644 index 0000000..c6e1e55 --- /dev/null +++ b/abs/core/python_modules/python-regex/__changelog @@ -0,0 +1 @@ +PKGBUILD: don't build py 3 stuff -- cgit v0.12