aboutsummaryrefslogtreecommitdiffstats
path: root/testing/uglify-js/APKBUILD
blob: b841cb04b2c8d68bae6cc1a686c067bc858a1012 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# Contributor: Kevin Daudt <kdaudt@alpinelinux.org>
# Maintainer: Kevin Daudt <kdaudt@alpinelinux.org>
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"