Date: Wednesday, October 30, 2019 @ 20:59:35 Author: jelle Revision: 521005
remove python2 module Modified: python-flake8-blind-except/trunk/PKGBUILD ----------+ PKGBUILD | 27 ++++----------------------- 1 file changed, 4 insertions(+), 23 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2019-10-30 20:55:09 UTC (rev 521004) +++ PKGBUILD 2019-10-30 20:59:35 UTC (rev 521005) @@ -1,7 +1,6 @@ # Maintainer: Felix Yan <[email protected]> -pkgbase=python-flake8-blind-except -pkgname=('python-flake8-blind-except' 'python2-flake8-blind-except') +pkgname=python-flake8-blind-except pkgver=0.1.1 pkgrel=2 pkgdesc='A flake8 extension that checks for blind except: statements' @@ -8,36 +7,18 @@ arch=('any') license=('MIT') url='https://github.com/elijahandrews/flake8-blind-except' -makedepends=('python-setuptools' 'python2-setuptools' 'git') +depends=('python-setuptools') +makedepends=('python-setuptools' 'git') source=("git+https://github.com/elijahandrews/flake8-blind-except.git#tag=v$pkgver") md5sums=('SKIP') -prepare() { - cp -a flake8-blind-except{,-py2} -} - build() { cd "$srcdir"/flake8-blind-except python setup.py build - - cd "$srcdir"/flake8-blind-except-py2 - python2 setup.py build } -package_python-flake8-blind-except() { - depends=('python-setuptools') - +package() { cd "$srcdir"/flake8-blind-except python setup.py install --root="$pkgdir"/ --optimize=1 install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE } - -package_python2-flake8-blind-except() { - depends=('python2-setuptools') - - cd "$srcdir"/flake8-blind-except-py2 - python2 setup.py install --root="$pkgdir"/ --optimize=1 - install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE -} - -# vim:set ts=2 sw=2 et:
