[arch-commits] Commit in python-js2py/repos/community-any (PKGBUILD PKGBUILD)
Jelle van der Waa
jelle at archlinux.org
Fri Jan 24 10:12:16 UTC 2020
Date: Friday, January 24, 2020 @ 10:12:15
Author: jelle
Revision: 555327
archrelease: copy trunk to community-any
Added:
python-js2py/repos/community-any/PKGBUILD
(from rev 555326, python-js2py/trunk/PKGBUILD)
Deleted:
python-js2py/repos/community-any/PKGBUILD
----------+
PKGBUILD | 86 +++++++++++++++++++++++++------------------------------------
1 file changed, 36 insertions(+), 50 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2020-01-24 10:12:04 UTC (rev 555326)
+++ PKGBUILD 2020-01-24 10:12:15 UTC (rev 555327)
@@ -1,50 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-
-pkgbase=python-js2py
-pkgname=(python-js2py python2-js2py)
-pkgver=0.67
-_commit=12739ed5978953f16fb5201a98c026bdb6fc1003
-pkgrel=1
-pkgdesc="JavaScript to Python Translator & JavaScript interpreter written in 100% pure Python"
-url="https://github.com/PiotrDabkowski/Js2Py"
-license=('MIT')
-arch=('any')
-makedepends=('python-setuptools' 'python2-setuptools' 'python-tzlocal' 'python2-tzlocal'
- 'python-six' 'python2-six' 'python-pyjsparser' 'python2-pyjsparser')
-checkdepends=('npm' 'python-numpy' 'python2-numpy')
-source=("$pkgbase-$_commit.tar.gz::https://github.com/PiotrDabkowski/Js2Py/archive/$_commit.tar.gz")
-sha512sums=('09e7feea092f350d5ba983716940acbc6d4b0b8da595770f1e6e5eaee1556ddc1b73b098094f4ebaedd86a9ae1ab15b37bb5ef48458487bccd9c1df4c6bd0fbb')
-
-prepare() {
- mv Js2Py-{$_commit,$pkgver}
-}
-
-build() {
- cd Js2Py-$pkgver
- python setup.py build
- python2 setup.py build
-}
-
-check() {
- cd Js2Py-$pkgver
- python simple_test.py
- python2 simple_test.py || warning "https://github.com/PiotrDabkowski/Js2Py/issues/149"
-}
-
-package_python-js2py() {
- depends=('python-tzlocal' 'python-six' 'python-pyjsparser')
-
- cd Js2Py-$pkgver
- python setup.py install --root="$pkgdir" --optimize=1
-
- install -Dm644 LICENSE.md "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.md
-}
-
-package_python2-js2py() {
- depends=('python2-tzlocal' 'python2-six' 'python2-pyjsparser')
-
- cd Js2Py-$pkgver
- python2 setup.py install --root="$pkgdir" --optimize=1
-
- install -Dm644 LICENSE.md "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.md
-}
Copied: python-js2py/repos/community-any/PKGBUILD (from rev 555326, python-js2py/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2020-01-24 10:12:15 UTC (rev 555327)
@@ -0,0 +1,36 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-js2py
+pkgver=0.67
+_commit=12739ed5978953f16fb5201a98c026bdb6fc1003
+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=('09e7feea092f350d5ba983716940acbc6d4b0b8da595770f1e6e5eaee1556ddc1b73b098094f4ebaedd86a9ae1ab15b37bb5ef48458487bccd9c1df4c6bd0fbb')
+
+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