Date: Monday, September 18, 2017 @ 06:46:21 Author: felixonmars Revision: 258727
archrelease: copy trunk to community-any Added: python-jsbeautifier/repos/community-any/PKGBUILD (from rev 258726, python-jsbeautifier/trunk/PKGBUILD) Deleted: python-jsbeautifier/repos/community-any/PKGBUILD ----------+ PKGBUILD | 110 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 55 insertions(+), 55 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2017-09-18 06:45:55 UTC (rev 258726) +++ PKGBUILD 2017-09-18 06:46:21 UTC (rev 258727) @@ -1,55 +0,0 @@ -# $Id$ -# Maintainer: Felix Yan <felixonm...@archlinux.org> - -pkgbase=python-jsbeautifier -pkgname=('python-jsbeautifier' 'python2-jsbeautifier') -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') -checkdepends=('python-pytest' 'python2-pytest') -source=("$pkgbase-$pkgver.tar.gz::https://github.com/beautify-web/js-beautify/archive/v$pkgver.tar.gz") -sha512sums=('dbe7e658fc07863cac67dc3f179e0ee006b8a483b81d081905f354827ea635a3e36534594d8dc5935a8e74847957820a23718dc72651b8e5cd842bd8aa06609e') - -prepare() { - cp -a js-beautify-$pkgver{,-py2} -} - -build() { - cd "$srcdir"/js-beautify-$pkgver/python - python setup.py build - - cd "$srcdir"/js-beautify-$pkgver-py2/python - python2 setup.py build -} - -check() { - cd "$srcdir"/js-beautify-$pkgver/python - python setup.py test - - cd "$srcdir"/js-beautify-$pkgver-py2/python - python2 setup.py test -} - -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-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: Copied: python-jsbeautifier/repos/community-any/PKGBUILD (from rev 258726, python-jsbeautifier/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2017-09-18 06:46:21 UTC (rev 258727) @@ -0,0 +1,55 @@ +# $Id$ +# Maintainer: Felix Yan <felixonm...@archlinux.org> + +pkgbase=python-jsbeautifier +pkgname=('python-jsbeautifier' 'python2-jsbeautifier') +pkgver=1.7.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=('f6b0de02d29453536dd7d30ab016fc33d48f8dc0ddbe86704fccc0c596f2d5244dfbb9708aef5baa84db0b75f8a1ff131cdfd9143d67cb10efeed9b9a6437174') + +prepare() { + cp -a js-beautify-$pkgver{,-py2} +} + +build() { + cd "$srcdir"/js-beautify-$pkgver/python + python setup.py build + + cd "$srcdir"/js-beautify-$pkgver-py2/python + python2 setup.py build +} + +check() { + cd "$srcdir"/js-beautify-$pkgver/python + python setup.py test + + cd "$srcdir"/js-beautify-$pkgver-py2/python + python2 setup.py test +} + +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-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: