[arch-commits] Commit in (4 files)

Felix Yan felixonmars at archlinux.org
Wed Nov 2 06:14:54 UTC 2016


    Date: Wednesday, November 2, 2016 @ 06:14:53
  Author: felixonmars
Revision: 194316

addpkg: python-jsbeautifier 1.6.4-1

Added:
  python-jsbeautifier/
  python-jsbeautifier/repos/
  python-jsbeautifier/trunk/
  python-jsbeautifier/trunk/PKGBUILD

----------+
 PKGBUILD |   56 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 56 insertions(+)

Added: python-jsbeautifier/trunk/PKGBUILD
===================================================================
--- python-jsbeautifier/trunk/PKGBUILD	                        (rev 0)
+++ python-jsbeautifier/trunk/PKGBUILD	2016-11-02 06:14:53 UTC (rev 194316)
@@ -0,0 +1,56 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-jsbeautifier
+pkgname=('python-jsbeautifier' 'python2-jsbeautifier')
+pkgver=1.6.4
+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'
+             'git')
+checkdepends=('python-pytest' 'python2-pytest')
+source=("git+https://github.com/beautify-web/js-beautify.git#tag=v$pkgver")
+md5sums=('SKIP')
+
+prepare() {
+  cp -a js-beautify{,-py2}
+}
+
+build() {
+  cd "$srcdir"/js-beautify/python
+  python setup.py build
+
+  cd "$srcdir"/js-beautify-py2/python
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir"/js-beautify/python
+  python setup.py test
+
+  cd "$srcdir"/js-beautify-py2/python
+  python2 setup.py test
+}
+
+package_python-jsbeautifier() {
+  depends=('python-six' 'python-editorconfig')
+
+  cd js-beautify/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-py2/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:


Property changes on: python-jsbeautifier/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property



More information about the arch-commits mailing list