# Contributor: Kevin Daudt # Maintainer: Kevin Daudt pkgname="uglify-js" pkgver=3.7.4 pkgrel=0 pkgdesc="JavaScript parser, mangler/compressor and beautifier toolkit" url="http://lisperator.net/uglifyjs" arch="noarch" license="BSD-2-Clause" depends="nodejs" makedepends="npm" source="https://registry.npmjs.org/uglify-js/-/uglify-js-$pkgver.tgz" options="!check" builddir="$srcdir/package" unpack() { # skipping unpacking, installing archive directly verify } package() { npm install -g --user root --prefix "$pkgdir/usr" "$srcdir/uglify-js-$pkgver.tgz" chown -R root: "$pkgdir" # npm installs as build user } sha512sums="b629d8584f17d507c21f14b59414bcca20de9328525ce3ba47aeb234e09d5097a88f1c70f8f5f6047033fc15b25bb3d0ee9922595c497c811b883c722d6bd41a uglify-js-3.7.4.tgz"