[arch-commits] Commit in python-pyjsparser/repos/community-staging-any (2 files)
Felix Yan
felixonmars at archlinux.org
Sun Nov 22 14:55:40 UTC 2020
Date: Sunday, November 22, 2020 @ 14:55:40
Author: felixonmars
Revision: 759177
archrelease: copy trunk to community-staging-any
Added:
python-pyjsparser/repos/community-staging-any/PKGBUILD
(from rev 759176, python-pyjsparser/trunk/PKGBUILD)
Deleted:
python-pyjsparser/repos/community-staging-any/PKGBUILD
----------+
PKGBUILD | 70 +++++++++++++++++++++++++++++++------------------------------
1 file changed, 36 insertions(+), 34 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2020-11-22 14:55:21 UTC (rev 759176)
+++ PKGBUILD 2020-11-22 14:55:40 UTC (rev 759177)
@@ -1,34 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-
-pkgname=python-pyjsparser
-pkgver=2.7.1
-_commit=61f38fd4b62125970424e4dcacee80f1df14857b
-pkgrel=6
-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
-}
Copied: python-pyjsparser/repos/community-staging-any/PKGBUILD (from rev 759176, python-pyjsparser/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2020-11-22 14:55:40 UTC (rev 759177)
@@ -0,0 +1,36 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-pyjsparser
+pkgver=2.7.1
+_commit=5465d037b30e334cb0997f2315ec1e451b8ad4c1
+pkgrel=7
+pkgdesc="Fast javascript parser (based on esprima.js)"
+url="https://github.com/PiotrDabkowski/pyjsparser"
+license=('MIT')
+arch=('any')
+depends=('python')
+makedepends=('python-setuptools')
+checkdepends=('python-js2py' 'python-pytest')
+source=("$pkgname-$_commit.tar.gz::https://github.com/PiotrDabkowski/pyjsparser/archive/$_commit.tar.gz")
+sha512sums=('2e4b3ee1cd863099da262eaf4df5ec4f364ce54e7c7535558f36d3449e21c9f851460078e1a7057ef8c82e2ed9c82f54944cd92782fe3f8cd05411edca191a40')
+
+prepare() {
+ mv pyjsparser-{$_commit,$pkgver}
+}
+
+build() {
+ cd pyjsparser-$pkgver
+ python setup.py build
+}
+
+check() {
+ cd pyjsparser-$pkgver
+ pytest
+}
+
+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