[arch-commits] Commit in python-jsbeautifier/repos/community-any (PKGBUILD PKGBUILD)

Daniel M. Capella polyzen at archlinux.org
Tue May 19 18:15:55 UTC 2020


    Date: Tuesday, May 19, 2020 @ 18:15:53
  Author: polyzen
Revision: 630013

archrelease: copy trunk to community-any

Added:
  python-jsbeautifier/repos/community-any/PKGBUILD
    (from rev 630012, python-jsbeautifier/trunk/PKGBUILD)
Deleted:
  python-jsbeautifier/repos/community-any/PKGBUILD

----------+
 PKGBUILD |   77 +++++++++++++++++++++++++++++++++++++------------------------
 1 file changed, 47 insertions(+), 30 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2020-05-19 18:15:33 UTC (rev 630012)
+++ PKGBUILD	2020-05-19 18:15:53 UTC (rev 630013)
@@ -1,30 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-
-pkgname=python-jsbeautifier
-pkgver=1.11.0
-pkgrel=1
-pkgdesc='JavaScript unobfuscator and beautifier'
-arch=('any')
-license=('MIT')
-url='https://github.com/beautify-web/js-beautify'
-depends=('python-six' 'python-editorconfig')
-makedepends=('python-setuptools')
-checkdepends=('python-pytest')
-source=("$pkgname-$pkgver.tar.gz::https://github.com/beautify-web/js-beautify/archive/v$pkgver.tar.gz")
-sha512sums=('1bcf0da38a9f465f4afebd981800b19e2650e0d7cb48dbf6a6d801da449e5e25b57244a6b57654d6760d9287496f8a1d23f27ab3e52e66b27a69ce6750989a73')
-
-build() {
-  cd js-beautify-$pkgver/python
-  python setup.py build
-}
-
-check() {
-  cd js-beautify-$pkgver/python
-  python setup.py test
-}
-
-package() {
-  cd js-beautify-$pkgver/python
-  python setup.py install --root="$pkgdir" --optimize=1
-  install -D -m644 ../LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-}

Copied: python-jsbeautifier/repos/community-any/PKGBUILD (from rev 630012, python-jsbeautifier/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-05-19 18:15:53 UTC (rev 630013)
@@ -0,0 +1,47 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Maintainer: Daniel M. Capella <polyzen at archlinux.org>
+
+pkgname=('python-jsbeautifier' 'python-cssbeautifier')
+pkgbase=python-jsbeautifier
+pkgver=1.11.0
+pkgrel=2
+arch=('any')
+license=('MIT')
+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=('1bcf0da38a9f465f4afebd981800b19e2650e0d7cb48dbf6a6d801da449e5e25b57244a6b57654d6760d9287496f8a1d23f27ab3e52e66b27a69ce6750989a73')
+
+prepare() {
+  cd js-beautify-$pkgver
+  cp -a python python-css
+}
+
+build() {
+  cd js-beautify-$pkgver/python
+  python setup.py build
+  cd ../python-css
+  python setup-css.py build
+}
+
+check() {
+  cd js-beautify-$pkgver
+  # Use python-css to avoid rebuilding cssbeautifier
+  python python-css/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
+  install -D -m644 -t "$pkgdir"/usr/share/licenses/"${pkgname[0]}" ../LICENSE
+}
+
+package_python-cssbeautifier() {
+  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
+  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