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

Felix Yan felixonmars at archlinux.org
Fri May 24 04:36:00 UTC 2019


    Date: Friday, May 24, 2019 @ 04:35:59
  Author: felixonmars
Revision: 469505

archrelease: copy trunk to community-any

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

----------+
 PKGBUILD |   76 ++++++++++++++++++++++++-------------------------------------
 1 file changed, 30 insertions(+), 46 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2019-05-24 04:35:46 UTC (rev 469504)
+++ PKGBUILD	2019-05-24 04:35:59 UTC (rev 469505)
@@ -1,46 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-
-pkgbase=python-jsbeautifier
-pkgname=('python-jsbeautifier' 'python2-jsbeautifier')
-pkgver=1.10.0
-pkgrel=1
-pkgdesc='JavaScript unobfuscator and beautifier'
-arch=('any')
-license=('MIT')
-url='https://github.com/beautify-web/js-beautify'
-makedepends=('python-setuptools' 'python2-setuptools' 'python-editorconfig' 'python2-editorconfig')
-checkdepends=('python-pytest' 'python2-pytest')
-source=("$pkgbase-$pkgver.tar.gz::https://github.com/beautify-web/js-beautify/archive/v$pkgver.tar.gz")
-sha512sums=('0a5d9f2e5d4701926fb4b6ebab8f9ba22b2ea96945e7cf8ba317e8960611e07a08e9b9b7b5b1b45c43bff6bcb53fef7f90b38dff0a5b70f43c89bbce68d1c9f5')
-
-build() {
-  cd js-beautify-$pkgver/python
-  python setup.py build
-  python2 setup.py build
-}
-
-check() {
-  cd js-beautify-$pkgver/python
-  python setup.py test || warning "Broken tests"
-  python2 setup.py test || warning "Broken tests"
-}
-
-package_python-jsbeautifier() {
-  depends=('python-six' 'python-editorconfig')
-
-  cd js-beautify-$pkgver/python
-  python setup.py install --root="$pkgdir" --optimize=1
-  install -D -m644 ../LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-}
-
-package_python2-jsbeautifier() {
-  depends=('python2-six' 'python2-editorconfig')
-
-  cd js-beautify-$pkgver/python
-  python2 setup.py install --root="$pkgdir" --optimize=1
-  install -D -m644 ../LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-
-  mv "$pkgdir"/usr/bin/js-beautify{,2}
-}
-
-# vim:set ts=2 sw=2 et:

Copied: python-jsbeautifier/repos/community-any/PKGBUILD (from rev 469504, python-jsbeautifier/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2019-05-24 04:35:59 UTC (rev 469505)
@@ -0,0 +1,30 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-jsbeautifier
+pkgver=1.10.0
+pkgrel=2
+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=('0a5d9f2e5d4701926fb4b6ebab8f9ba22b2ea96945e7cf8ba317e8960611e07a08e9b9b7b5b1b45c43bff6bcb53fef7f90b38dff0a5b70f43c89bbce68d1c9f5')
+
+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
+}



More information about the arch-commits mailing list