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

Felix Yan felixonmars at gemini.archlinux.org
Wed Dec 1 14:55:17 UTC 2021


    Date: Wednesday, December 1, 2021 @ 14:55:17
  Author: felixonmars
Revision: 1059532

archrelease: copy trunk to community-staging-any

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

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

Copied: python-js2py/repos/community-staging-any/PKGBUILD (from rev 1059528, python-js2py/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2021-12-01 14:55:17 UTC (rev 1059532)
@@ -0,0 +1,36 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-js2py
+pkgver=0.71
+_commit=5f665f60083a9796ec33861240ce31d6d2b844b6
+pkgrel=2
+pkgdesc="JavaScript to Python Translator & JavaScript interpreter written in 100% pure Python"
+url="https://github.com/PiotrDabkowski/Js2Py"
+license=('MIT')
+arch=('any')
+depends=('python-tzlocal' 'python-six' 'python-pyjsparser')
+makedepends=('python-setuptools' 'python-tzlocal'  'python-six' 'python-pyjsparser')
+checkdepends=('npm' 'python-numpy')
+source=("$pkgname-$_commit.tar.gz::https://github.com/PiotrDabkowski/Js2Py/archive/$_commit.tar.gz")
+sha512sums=('75bae61619d4766117f3c163d36427f3019825ecb08b745aee7c3b6f2d33a4ea8507ca180b63c0a8e575a5f9491eb64d6963acbb912edc7b934a676b38814597')
+
+prepare() {
+  mv Js2Py-{$_commit,$pkgver}
+}
+
+build() {
+  cd Js2Py-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd Js2Py-$pkgver
+  python simple_test.py
+}
+
+package() {
+  cd Js2Py-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+
+  install -Dm644 LICENSE.md "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.md
+}



More information about the arch-commits mailing list