js-beautify
810 bytes of Bash
Created 10 months, 1 week ago
— expires in 56 days
Viewed
67 times
https://dpaste.com/CL6XAM299
| pkgname=js-beautify
pkgver=1.14.3
pkgrel=1
pkgdesc="CSS, HTML & JavaScript unobfuscator and beautifier"
arch=('any')
url="https://beautifier.io"
license=('MIT')
depends=('nodejs')
makedepends=('npm')
conflicts=('python-cssbeautifier' 'python-jsbeautifier')
source=("https://registry.npmjs.org/js-beautify/-/$pkgname-$pkgver.tgz")
noextract=("$pkgname-$pkgver.tgz")
sha256sums=('7e33784017d8be45eb788bbcffb31d7512d2e6f5616877e733bfa27aff4e9665')
package() {
npm install -g --prefix "$pkgdir/usr" "$pkgname-$pkgver.tgz"
# npm gives ownership of ALL FILES to build user
# https://bugs.archlinux.org/task/63396
chown -R root:root "$pkgdir"
install -d "$pkgdir/usr/share/licenses/$pkgname"
ln -s "/usr/lib/node_modules/$pkgname/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/"
}
|
pkgname=js-beautify
pkgver=1.14.3
pkgrel=1
pkgdesc="CSS, HTML & JavaScript unobfuscator and beautifier"
arch=('any')
url="https://beautifier.io"
license=('MIT')
depends=('nodejs')
makedepends=('npm')
conflicts=('python-cssbeautifier' 'python-jsbeautifier')
source=("https://registry.npmjs.org/js-beautify/-/$pkgname-$pkgver.tgz")
noextract=("$pkgname-$pkgver.tgz")
sha256sums=('7e33784017d8be45eb788bbcffb31d7512d2e6f5616877e733bfa27aff4e9665')
package() {
npm install -g --prefix "$pkgdir/usr" "$pkgname-$pkgver.tgz"
# npm gives ownership of ALL FILES to build user
# https://bugs.archlinux.org/task/63396
chown -R root:root "$pkgdir"
install -d "$pkgdir/usr/share/licenses/$pkgname"
ln -s "/usr/lib/node_modules/$pkgname/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/"
}