[arch-commits] Commit in python-jsbeautifier/trunk (PKGBUILD)

Daniel M. Capella polyzen at archlinux.org
Sun Aug 23 15:40:36 UTC 2020


    Date: Sunday, August 23, 2020 @ 15:40:36
  Author: polyzen
Revision: 687114

upgpkg: python-jsbeautifier 1.13.0-1

Modified:
  python-jsbeautifier/trunk/PKGBUILD

----------+
 PKGBUILD |   12 +++++-------
 1 file changed, 5 insertions(+), 7 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-08-23 13:09:29 UTC (rev 687113)
+++ PKGBUILD	2020-08-23 15:40:36 UTC (rev 687114)
@@ -3,7 +3,7 @@
 
 pkgname=('python-jsbeautifier' 'python-cssbeautifier')
 pkgbase=python-jsbeautifier
-pkgver=1.12.0
+pkgver=1.13.0
 pkgrel=1
 arch=('any')
 license=('MIT')
@@ -10,7 +10,7 @@
 url='https://github.com/beautify-web/js-beautify'
 depends=('python-setuptools' 'python-six' 'python-editorconfig')
 source=("https://github.com/beautify-web/js-beautify/archive/v$pkgver/js-beautify-v$pkgver.tar.gz")
-sha512sums=('ebbcc5d2487145df05965115a87da3ed61209b4a226fae61f63378cee6266e0f3d22eedb61aa4aa2b9ebe46e723d0a2b7edcb006af008b3b97391c56dafbe5a0')
+sha512sums=('a60a71f8ef1b3751ab32fa5884bc07d46f2f02ce06d3527e15ef4d709eae625677b31a69990e56da859ad6c72aefe41992155cfaaeea8590dd505003ccfd7979')
 
 prepare() {
   cd js-beautify-$pkgver
@@ -19,7 +19,7 @@
 
 build() {
   cd js-beautify-$pkgver/python
-  python setup.py build
+  python setup-js.py build
   cd ../python-css
   python setup-css.py build
 }
@@ -26,14 +26,13 @@
 
 check() {
   cd js-beautify-$pkgver
-  # Use python-css to avoid rebuilding cssbeautifier
-  python python-css/js-beautify-test.py
+  python python/js-beautify-test.py
 }
 
 package_python-jsbeautifier() {
   pkgdesc='JavaScript unobfuscator and beautifier'
   cd js-beautify-$pkgver/python
-  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+  python setup-js.py install --root="$pkgdir" --optimize=1 --skip-build
   install -D -m644 -t "$pkgdir"/usr/share/licenses/"${pkgname[0]}" ../LICENSE
 }
 
@@ -42,6 +41,5 @@
   depends+=('python-jsbeautifier')
   cd js-beautify-$pkgver/python-css
   python setup-css.py install --root="$pkgdir" --optimize=1 --skip-build
-  rm -r "$pkgdir"/usr/{bin/js-beautify,lib/python3.8/site-packages/jsbeautifier{,-$pkgver-py3.8.egg-info}}
   install -D -m644 -t "$pkgdir"/usr/share/licenses/"${pkgname[1]}" ../LICENSE
 }



More information about the arch-commits mailing list