Date: Wednesday, December 1, 2021 @ 14:54:39 Author: foutrelis Revision: 1059514
archrelease: copy trunk to community-staging-any Added: python-jsbeautifier/repos/community-staging-any/ python-jsbeautifier/repos/community-staging-any/PKGBUILD (from rev 1059513, python-jsbeautifier/trunk/PKGBUILD) ----------+ PKGBUILD | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) Copied: python-jsbeautifier/repos/community-staging-any/PKGBUILD (from rev 1059513, python-jsbeautifier/trunk/PKGBUILD) =================================================================== --- community-staging-any/PKGBUILD (rev 0) +++ community-staging-any/PKGBUILD 2021-12-01 14:54:39 UTC (rev 1059514) @@ -0,0 +1,46 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Maintainer: Daniel M. Capella <poly...@archlinux.org> + +pkgname=('python-jsbeautifier' 'python-cssbeautifier') +pkgbase=python-jsbeautifier +pkgver=1.14.0 +pkgrel=2 +arch=('any') +license=('MIT') +url='https://github.com/beautify-web/js-beautify' +depends=('python-editorconfig' 'python-six') +makedepends=('python-setuptools') +source=("https://github.com/beautify-web/js-beautify/archive/v$pkgver/js-beautify-v$pkgver.tar.gz") +b2sums=('2e0d1fdfb36a5dae651b2227e81e0fc3c150482e1e6d5363fe429b481663da05ade25d3f45276e989f118cf2b06039684fba29091722aab0a50fb025507f7329') + +prepare() { + cd js-beautify-$pkgver + cp -a python python-css +} + +build() { + cd js-beautify-$pkgver/python + python setup-js.py build + cd ../python-css + python setup-css.py build +} + +check() { + cd js-beautify-$pkgver + python python/js-beautify-test.py +} + +package_python-jsbeautifier() { + pkgdesc='JavaScript unobfuscator and beautifier' + cd js-beautify-$pkgver/python + python setup-js.py install --root="$pkgdir" --optimize=1 --skip-build + install -D -m644 -t "$pkgdir"/usr/share/licenses/"${pkgname[0]}" ../LICENSE +} + +package_python-cssbeautifier() { + pkgdesc='CSS unobfuscator and beautifier' + depends+=('python-jsbeautifier') + cd js-beautify-$pkgver/python-css + python setup-css.py install --root="$pkgdir" --optimize=1 --skip-build + install -D -m644 -t "$pkgdir"/usr/share/licenses/"${pkgname[1]}" ../LICENSE +}