blob: 3317b82e8d66229ab4b06713af8a7b9ad0bfa5b9 (
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.3
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="eed20d9b8ebfde9b9403884290a628e1776db3e2436950bd64f45c1bc5f0f51e2784efe066050cdd310dabc205e156ad93ca828a0e0cccffdcf06e2ed8191542 uglify-js-3.7.3.tgz"
|