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

Felix Yan felixonmars at archlinux.org
Mon Nov 9 15:35:10 UTC 2020


    Date: Monday, November 9, 2020 @ 15:35:10
  Author: felixonmars
Revision: 746999

archrelease: copy trunk to community-staging-any

Added:
  python-pyjsparser/repos/community-staging-any/
  python-pyjsparser/repos/community-staging-any/PKGBUILD
    (from rev 746997, python-pyjsparser/trunk/PKGBUILD)

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

Copied: python-pyjsparser/repos/community-staging-any/PKGBUILD (from rev 746997, python-pyjsparser/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2020-11-09 15:35:10 UTC (rev 746999)
@@ -0,0 +1,34 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-pyjsparser
+pkgver=2.7.1
+_commit=61f38fd4b62125970424e4dcacee80f1df14857b
+pkgrel=5
+pkgdesc="Fast javascript parser (based on esprima.js)"
+url="https://github.com/PiotrDabkowski/pyjsparser"
+license=('MIT')
+arch=('any')
+depends=('python')
+source=("$pkgname-$_commit.tar.gz::https://github.com/PiotrDabkowski/pyjsparser/archive/$_commit.tar.gz")
+sha512sums=('a91d11e1badd085c1efe72174b304354e8fd5ae922a8b451f36f9099522e1c95454d1ac580eed2a19d7ac48fce22011ed11ef1d9676f9b118c76285a5190c9e4')
+
+prepare() {
+  mv pyjsparser-{$_commit,$pkgver}
+}
+
+build() {
+  cd pyjsparser-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd pyjsparser-$pkgver
+  python test.py
+}
+
+package_python-pyjsparser() {
+  cd pyjsparser-$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