Date: Saturday, November 12, 2022 @ 23:50:24
Author: felixonmars
Revision: 1347180
archrelease: copy trunk to community-any
Added:
python-js2py/repos/community-any/PKGBUILD
(from rev 1347179, python-js2py/trunk/PKGBUILD)
Deleted:
python-js2py/repos/community-any/PKGBUILD
----------+
PKGBUILD | 83 ++++++++++++++++++++++++++++++-------------------------------
1 file changed, 41 insertions(+), 42 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2022-11-12 23:50:15 UTC (rev 1347179)
+++ PKGBUILD 2022-11-12 23:50:24 UTC (rev 1347180)
@@ -1,42 +0,0 @@
-# Maintainer: Felix Yan <[email protected]>
-
-pkgname=python-js2py
-pkgver=0.71
-_commit=5f665f60083a9796ec33861240ce31d6d2b844b6
-pkgrel=4
-pkgdesc="JavaScript to Python Translator & JavaScript interpreter written in
100% pure Python"
-url="https://github.com/PiotrDabkowski/Js2Py"
-license=('MIT')
-arch=('any')
-depends=('python-six' 'python-pyjsparser')
-makedepends=('python-setuptools' 'python-tzlocal' 'python-six'
'python-pyjsparser')
-checkdepends=('npm' 'python-numpy')
-optdepends=('python-tzlocal: for local timezone support')
-source=("$pkgname-$_commit.tar.gz::https://github.com/PiotrDabkowski/Js2Py/archive/$_commit.tar.gz"
-
"js2py-opt-tzlocal.patch::https://github.com/PiotrDabkowski/Js2Py/pull/293.patch")
-sha512sums=('75bae61619d4766117f3c163d36427f3019825ecb08b745aee7c3b6f2d33a4ea8507ca180b63c0a8e575a5f9491eb64d6963acbb912edc7b934a676b38814597'
-
'1997ba4adc70ad3a41af21ca63731e758b381abcdbf565ee948838b079c93e338bfb0ff8fda3cdfae2aee766b2d34e7aa1339903be580a8b51cc57b842122424')
-
-prepare() {
- mv Js2Py-{$_commit,$pkgver}
- cd Js2Py-$pkgver
- # https://github.com/PiotrDabkowski/Js2Py/pull/293
- patch --forward --strip=1 --input=../js2py-opt-tzlocal.patch
-}
-
-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
-}
Copied: python-js2py/repos/community-any/PKGBUILD (from rev 1347179,
python-js2py/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2022-11-12 23:50:24 UTC (rev 1347180)
@@ -0,0 +1,41 @@
+# Maintainer: Felix Yan <[email protected]>
+
+pkgname=python-js2py
+pkgver=0.72
+_commit=70fe4f557e957db082ee49f8e9b4cf4ac80071ef
+pkgrel=1
+pkgdesc="JavaScript to Python Translator & JavaScript interpreter written in
100% pure Python"
+url="https://github.com/PiotrDabkowski/Js2Py"
+license=('MIT')
+arch=('any')
+depends=('python-six' 'python-pyjsparser')
+makedepends=('python-setuptools' 'python-tzlocal')
+checkdepends=('npm' 'python-numpy')
+optdepends=('python-tzlocal: for local timezone support')
+source=("$pkgname-$_commit.tar.gz::https://github.com/PiotrDabkowski/Js2Py/archive/$_commit.tar.gz"
+
"js2py-opt-tzlocal.patch::https://github.com/PiotrDabkowski/Js2Py/pull/293.patch")
+sha512sums=('55ae8ff0d9875ce7588bbd5541077015070b95c382e2ce35a40b44939e5194cd3f29b08d544ad38d37d5cd38e6fc01884fabb35bbb2449566051095d224c4592'
+
'db4fce5b0b26cc89346347719f7feb8da65119ef54504f6475d7a52f0dbb6483c26ff259a1b5c54c98422057e64debad5d2d92585e1acfd1a1c67f301d6a328c')
+
+prepare() {
+ mv Js2Py-{$_commit,$pkgver}
+ cd Js2Py-$pkgver
+ # https://github.com/PiotrDabkowski/Js2Py/pull/293
+ patch --forward --strip=1 --input=../js2py-opt-tzlocal.patch
+}
+
+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 -t "$pkgdir"/usr/share/licenses/$pkgname/
+}