Date: Saturday, July 30, 2022 @ 22:34:31 Author: arojas Revision: 1259232
archrelease: copy trunk to community-testing-any Added: python-lark-parser/repos/community-testing-any/ python-lark-parser/repos/community-testing-any/PKGBUILD (from rev 1259231, python-lark-parser/trunk/PKGBUILD) ----------+ PKGBUILD | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) Copied: python-lark-parser/repos/community-testing-any/PKGBUILD (from rev 1259231, python-lark-parser/trunk/PKGBUILD) =================================================================== --- community-testing-any/PKGBUILD (rev 0) +++ community-testing-any/PKGBUILD 2022-07-30 22:34:31 UTC (rev 1259232) @@ -0,0 +1,39 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> + +pkgname=python-lark-parser +pkgver=1.1.2 +_nearley_commit=326831689826cb1b9a4d21d1ce0d5db9278e9636 +pkgrel=1 +pkgdesc="A modern parsing library" +url="https://github.com/lark-parser/lark" +license=('MIT') +arch=('any') +depends=('python') +makedepends=('python-setuptools') +checkdepends=('python-js2py') +source=("$pkgname-$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=('0f520798ee636ebde151596a5cd35dfbc55e251c7f7f16a2d2395b928d37ed5ee7b3e7d3f457e64ea062635f58fa9f9baa53e9eeb68b9be4054785edb3a872ae' + '88849bfa609c112a7687d8aba1fc140b1b6be119f7001869e7c05019e87c31874a6d0c9fb2c68b5729c4b4427ff05e36057857cea11bd51d2b5d89e7710196b7') + +prepare() { + rmdir lark-$pkgver/tests/test_nearley/nearley + ln -s "$srcdir"/nearley-$_nearley_commit lark-$pkgver/tests/test_nearley/nearley +} + +build() { + cd lark-$pkgver + python setup.py build +} + +check() { + cd lark-$pkgver + python -m tests +} + +package() { + cd lark-$pkgver + python setup.py install --root="$pkgdir" --optimize=1 + + install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE +}