[arch-commits] Commit in python-jsbeautifier/trunk (PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Fri May 24 04:35:47 UTC 2019
Date: Friday, May 24, 2019 @ 04:35:46
Author: felixonmars
Revision: 469504
upgpkg: python-jsbeautifier 1.10.0-2
remove python2 sibling
Modified:
python-jsbeautifier/trunk/PKGBUILD
----------+
PKGBUILD | 32 ++++++++------------------------
1 file changed, 8 insertions(+), 24 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2019-05-24 04:32:48 UTC (rev 469503)
+++ PKGBUILD 2019-05-24 04:35:46 UTC (rev 469504)
@@ -1,46 +1,30 @@
# Maintainer: Felix Yan <felixonmars at archlinux.org>
-pkgbase=python-jsbeautifier
-pkgname=('python-jsbeautifier' 'python2-jsbeautifier')
+pkgname=python-jsbeautifier
pkgver=1.10.0
-pkgrel=1
+pkgrel=2
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")
+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
- python2 setup.py build
}
check() {
cd js-beautify-$pkgver/python
- python setup.py test || warning "Broken tests"
- python2 setup.py test || warning "Broken tests"
+ python setup.py test
}
-package_python-jsbeautifier() {
- depends=('python-six' 'python-editorconfig')
-
+package() {
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:
More information about the arch-commits
mailing list