[arch-commits] Commit in python-lark-parser/repos (2 files)

Evangelos Foutras foutrelis at gemini.archlinux.org
Tue Nov 30 20:21:57 UTC 2021


    Date: Tuesday, November 30, 2021 @ 20:21:57
  Author: foutrelis
Revision: 1058116

archrelease: copy trunk to community-staging-any

Added:
  python-lark-parser/repos/community-staging-any/
  python-lark-parser/repos/community-staging-any/PKGBUILD
    (from rev 1058113, python-lark-parser/trunk/PKGBUILD)

----------+
 PKGBUILD |   39 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 39 insertions(+)

Copied: python-lark-parser/repos/community-staging-any/PKGBUILD (from rev 1058113, python-lark-parser/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2021-11-30 20:21:57 UTC (rev 1058116)
@@ -0,0 +1,39 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-lark-parser
+pkgver=0.11.3
+_nearley_commit=a46b37471db486db0f6e1ce6a2934fb238346b44
+pkgrel=3
+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=('16d318493c59d305cee16501568ecd38e1a8c38ab3905ad02a74171382f57bc56d226dd697ea86b3b8a47d2262195291523eb9443ff73d9117ffccc1f44708d0'
+            'fe14909f8a1d1626f8a632e8d48bf83602923f468b7bbb819557b85ab5e384cb042241ba15525e9850f2bbd65cad12497ed0b7ff6bc86c04d78b63d0c1bb66b4')
+
+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
+}



More information about the arch-commits mailing list