Date: Monday, April 10, 2023 @ 12:11:35
Author: felixonmars
Revision: 1444200
archrelease: copy trunk to community-staging-any
Added:
python-js2py/repos/community-staging-any/PKGBUILD
(from rev 1444198, python-js2py/trunk/PKGBUILD)
Deleted:
python-js2py/repos/community-staging-any/PKGBUILD
----------+
PKGBUILD | 82 ++++++++++++++++++++++++++++++-------------------------------
1 file changed, 41 insertions(+), 41 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2023-04-10 12:11:33 UTC (rev 1444199)
+++ PKGBUILD 2023-04-10 12:11:35 UTC (rev 1444200)
@@ -1,41 +0,0 @@
-# Maintainer: Felix Yan <[email protected]>
-
-pkgname=python-js2py
-pkgver=0.72
-_commit=70fe4f557e957db082ee49f8e9b4cf4ac80071ef
-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-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/
-}
Copied: python-js2py/repos/community-staging-any/PKGBUILD (from rev 1444198,
python-js2py/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2023-04-10 12:11:35 UTC (rev 1444200)
@@ -0,0 +1,41 @@
+# Maintainer: Felix Yan <[email protected]>
+
+pkgname=python-js2py
+pkgver=0.72
+_commit=70fe4f557e957db082ee49f8e9b4cf4ac80071ef
+pkgrel=3
+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/
+}