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

Daniel M. Capella polyzen at gemini.archlinux.org
Tue Sep 6 23:04:47 UTC 2022


    Date: Tuesday, September 6, 2022 @ 23:04:46
  Author: polyzen
Revision: 1296003

upgpkg: python-jsbeautifier 1.14.6-2: Use PEP 517

Modified:
  python-jsbeautifier/trunk/PKGBUILD

----------+
 PKGBUILD |   15 +++++++++------
 1 file changed, 9 insertions(+), 6 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2022-09-06 22:44:33 UTC (rev 1296002)
+++ PKGBUILD	2022-09-06 23:04:46 UTC (rev 1296003)
@@ -4,12 +4,13 @@
 pkgname=('python-jsbeautifier' 'python-cssbeautifier')
 pkgbase=python-jsbeautifier
 pkgver=1.14.6
-pkgrel=1
+pkgrel=2
 arch=('any')
 license=('MIT')
 url='https://github.com/beautify-web/js-beautify'
 depends=('python-editorconfig' 'python-six')
-makedepends=('python-setuptools')
+makedepends=('python-build' 'python-installer' 'python-setuptools'
+             'python-wheel')
 source=("https://github.com/beautify-web/js-beautify/archive/v$pkgver/js-beautify-v$pkgver.tar.gz")
 b2sums=('71b5c53a8dc6fbcf1317b6fd6d6d105c35f4a33ab2d727909cfa4cfdb73d5f83b87aef70271bfc1a31847e4093c22ce99a4986f9e7f2dff237b7e190186a1541')
 
@@ -20,9 +21,11 @@
 
 build() {
   cd js-beautify-$pkgver/python
-  python setup-js.py build
+  mv setup-js.py setup.py
+  python -m build --wheel --skip-dependency-check --no-isolation
   cd ../python-css
-  python setup-css.py build
+  mv setup-css.py setup.py
+  python -m build --wheel --skip-dependency-check --no-isolation
 }
 
 check() {
@@ -33,7 +36,7 @@
 package_python-jsbeautifier() {
   pkgdesc='JavaScript unobfuscator and beautifier'
   cd js-beautify-$pkgver/python
-  python setup-js.py install --root="$pkgdir" --optimize=1 --skip-build
+  python -m installer --destdir="$pkgdir" dist/*.whl
   install -D -m644 -t "$pkgdir"/usr/share/licenses/"${pkgname[0]}" ../LICENSE
 }
 
@@ -41,6 +44,6 @@
   pkgdesc='CSS unobfuscator and beautifier'
   depends+=('python-jsbeautifier')
   cd js-beautify-$pkgver/python-css
-  python setup-css.py install --root="$pkgdir" --optimize=1 --skip-build
+  python -m installer --destdir="$pkgdir" dist/*.whl
   install -D -m644 -t "$pkgdir"/usr/share/licenses/"${pkgname[1]}" ../LICENSE
 }



More information about the arch-commits mailing list