Date: Wednesday, July 11, 2018 @ 19:42:24 Author: eschwartz Revision: 357416
archrelease: copy trunk to community-x86_64 Added: python-regex/repos/community-x86_64/PKGBUILD (from rev 357415, python-regex/trunk/PKGBUILD) Deleted: python-regex/repos/community-x86_64/PKGBUILD ----------+ PKGBUILD | 136 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 68 insertions(+), 68 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2018-07-11 19:41:57 UTC (rev 357415) +++ PKGBUILD 2018-07-11 19:42:24 UTC (rev 357416) @@ -1,68 +0,0 @@ -# Maintainer: Jelle van der Waa <je...@archlinux.org> -# Maintainer: Eli Schwartz <eschwa...@archlinux.org> -# Contributor: Nikola Milinković <nik...@gmail.com> -# Submitter: Xiao-Long Chen <chenxiaol...@cxl.epac.to> - -_pkgbase=regex -pkgbase=python-regex -pkgname=('python-regex' 'python2-regex') -pkgname=python-regex -pkgver=2018.06.21 -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=('b172583f0c5f104e059a30dd6a1f9d20693031b156558590a745d6cc3192e283') - -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') - 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/" - - 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 - - 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/" - - 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 357415, python-regex/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2018-07-11 19:42:24 UTC (rev 357416) @@ -0,0 +1,68 @@ +# Maintainer: Jelle van der Waa <je...@archlinux.org> +# Maintainer: Eli Schwartz <eschwa...@archlinux.org> +# Contributor: Nikola Milinković <nik...@gmail.com> +# Submitter: Xiao-Long Chen <chenxiaol...@cxl.epac.to> + +_pkgbase=regex +pkgbase=python-regex +pkgname=('python-regex' 'python2-regex') +pkgname=python-regex +pkgver=2018.07.11 +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=('9308dbce8e5ff4ee06b172a777f6c7f650a5835a5ad41a6080eb501639c27a2f') + +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') + 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/" + + 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 + + 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/" + + sed -n '1,/^$/p' regex_3/regex.py | install -Dm644 /dev/stdin "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE +}