Date: Sunday, January 5, 2020 @ 21:06:12 Author: jelle Revision: 549386
upgpkg: python-lark-parser 0.7.8-4 remove unused python2-lark-parser Modified: python-lark-parser/trunk/PKGBUILD ----------+ PKGBUILD | 25 ++++++------------------- 1 file changed, 6 insertions(+), 19 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2020-01-05 20:48:29 UTC (rev 549385) +++ PKGBUILD 2020-01-05 21:06:12 UTC (rev 549386) @@ -1,16 +1,16 @@ # Maintainer: Felix Yan <felixonm...@archlinux.org> -pkgbase=python-lark-parser -pkgname=(python-lark-parser python2-lark-parser) +pkgname=python-lark-parser pkgver=0.7.8 _nearley_commit=a46b37471db486db0f6e1ce6a2934fb238346b44 -pkgrel=3 +pkgrel=4 pkgdesc="A modern parsing library" url="https://github.com/lark-parser/lark" license=('MIT') arch=('any') -makedepends=('python-setuptools' 'python2-setuptools') -checkdepends=('python-js2py' 'python2-js2py') +depends=('python') +makedepends=('python-setuptools') +checkdepends=('python-js2py') source=("$pkgbase-$pkgver.tar.gz::https://github.com/lark-parser/lark/archive/$pkgver.tar.gz" "nearley-$_nearley_commit.tar.gz::https://github.com/kach/nearley/archive/$_nearley_commit.tar.gz") sha512sums=('3f6093d600744e23f32622bc40017873ecd54b44757b761f007606827411964bb38e3b5c0c23373ff0caea2ab73d6ed1c834d5444cedce0cef762c512a1aa669' @@ -24,29 +24,16 @@ build() { cd lark-$pkgver python setup.py build - python2 setup.py build } check() { cd lark-$pkgver python -m tests - python2 -m tests } -package_python-lark-parser() { - depends=('python') - +package() { cd lark-$pkgver python setup.py install --root="$pkgdir" --optimize=1 install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE } - -package_python2-lark-parser() { - depends=('python2') - - cd lark-$pkgver - python2 setup.py install --root="$pkgdir" --optimize=1 - - install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE -}