Date: Friday, September 25, 2020 @ 05:58:56 Author: eschwartz Revision: 711972
upgpkg: python-regex 2020.7.14-2: drop python2 no longer used by calibre, and is therefore not needed at all Modified: python-regex/trunk/PKGBUILD ----------+ PKGBUILD | 31 ++++++------------------------- 1 file changed, 6 insertions(+), 25 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2020-09-25 05:53:43 UTC (rev 711971) +++ PKGBUILD 2020-09-25 05:58:56 UTC (rev 711972) @@ -4,15 +4,15 @@ # Submitter: Xiao-Long Chen <chenxiaol...@cxl.epac.to> _pkgbase=regex -pkgbase=python-regex -pkgname=('python-regex' 'python2-regex') +pkgname=python-regex pkgver=2020.7.14 -pkgrel=1 +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') +depends=('python') +makedepends=('python-setuptools') options=(!emptydirs) source=("https://files.pythonhosted.org/packages/source/r/${_pkgbase}/${_pkgbase}-${pkgver}.tar.gz") sha256sums=('3a3af27a8d23143c49a3420efe5b3f8cf1a48c6fc8bc6856b03f638abc1833bb') @@ -22,37 +22,18 @@ cd "regex-${pkgver}" python setup.py build - python2 setup.py build } check() { cd "regex-${pkgver}" - pushd build/lib.linux-${CARCH}-3*/ + cd build/lib.linux-${CARCH}-3*/ python -m unittest regex/test_regex.py - popd - - pushd build/lib.linux-${CARCH}-2*/ - python2 -m unittest regex.test_regex - popd } -package_python2-regex() { - depends=('python2') - pkgdesc="Alternative python regular expression module. (python2 version)" - +package() { cd "regex-${pkgver}" - python2 setup.py install --root="${pkgdir}/" --optimize=1 --skip-build - 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 - sed -n '1,/^$/p' regex_3/regex.py | install -Dm644 /dev/stdin "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE }