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

Felix Yan felixonmars at archlinux.org
Sun May 14 02:47:36 UTC 2017


    Date: Sunday, May 14, 2017 @ 02:47:34
  Author: felixonmars
Revision: 227926

upgpkg: python-jsbeautifier 1.6.14-1

Modified:
  python-jsbeautifier/trunk/PKGBUILD

----------+
 PKGBUILD |   23 +++++++++++------------
 1 file changed, 11 insertions(+), 12 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2017-05-13 23:41:59 UTC (rev 227925)
+++ PKGBUILD	2017-05-14 02:47:34 UTC (rev 227926)
@@ -3,35 +3,34 @@
 
 pkgbase=python-jsbeautifier
 pkgname=('python-jsbeautifier' 'python2-jsbeautifier')
-pkgver=1.6.12
+pkgver=1.6.14
 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')
+makedepends=('python-setuptools' 'python2-setuptools' 'python-editorconfig' 'python2-editorconfig')
 checkdepends=('python-pytest' 'python2-pytest')
-source=("git+https://github.com/beautify-web/js-beautify.git#tag=v$pkgver")
-md5sums=('SKIP')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/beautify-web/js-beautify/archive/v$pkgver.tar.gz")
+sha512sums=('dbe7e658fc07863cac67dc3f179e0ee006b8a483b81d081905f354827ea635a3e36534594d8dc5935a8e74847957820a23718dc72651b8e5cd842bd8aa06609e')
 
 prepare() {
-  cp -a js-beautify{,-py2}
+  cp -a js-beautify-$pkgver{,-py2}
 }
 
 build() {
-  cd "$srcdir"/js-beautify/python
+  cd "$srcdir"/js-beautify-$pkgver/python
   python setup.py build
 
-  cd "$srcdir"/js-beautify-py2/python
+  cd "$srcdir"/js-beautify-$pkgver-py2/python
   python2 setup.py build
 }
 
 check() {
-  cd "$srcdir"/js-beautify/python
+  cd "$srcdir"/js-beautify-$pkgver/python
   python setup.py test
 
-  cd "$srcdir"/js-beautify-py2/python
+  cd "$srcdir"/js-beautify-$pkgver-py2/python
   python2 setup.py test
 }
 
@@ -38,7 +37,7 @@
 package_python-jsbeautifier() {
   depends=('python-six' 'python-editorconfig')
 
-  cd js-beautify/python
+  cd js-beautify-$pkgver/python
   python setup.py install --root="$pkgdir" --optimize=1
   install -D -m644 ../LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
 }
@@ -46,7 +45,7 @@
 package_python2-jsbeautifier() {
   depends=('python2-six' 'python2-editorconfig')
 
-  cd js-beautify-py2/python
+  cd js-beautify-$pkgver-py2/python
   python2 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