aboutsummaryrefslogtreecommitdiffstats
path: root/testing/uglify-js
diff options
context:
space:
mode:
authorKevin Daudt <kdaudt@alpinelinux.org>2019-11-26 15:32:09 +0000
committerKevin Daudt <kdaudt@alpinelinux.org>2019-11-26 15:45:53 +0000
commita57586759ce9b927da6a53aac6b90190d2d4de6c (patch)
tree81cc687e99913a2b67804fd4979ee101d594e304 /testing/uglify-js
parentd3061651c3290463680391ca7ee66d1c065792b0 (diff)
downloadaports-a57586759ce9b927da6a53aac6b90190d2d4de6c.tar.bz2
aports-a57586759ce9b927da6a53aac6b90190d2d4de6c.tar.xz
testing/uglify-js: new aport
Diffstat (limited to 'testing/uglify-js')
-rw-r--r--testing/uglify-js/APKBUILD26
1 files changed, 26 insertions, 0 deletions
diff --git a/testing/uglify-js/APKBUILD b/testing/uglify-js/APKBUILD
new file mode 100644
index 0000000000..33a8c8635f
--- /dev/null
+++ b/testing/uglify-js/APKBUILD
@@ -0,0 +1,26 @@
+# Contributor: Kevin Daudt <kdaudt@alpinelinux.org>
+# Maintainer: Kevin Daudt <kdaudt@alpinelinux.org>
+pkgname="uglify-js"
+pkgver="3.7.0"
+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="3c2fde7b8e7c3443084ded4eb9f0236a5eb98ba941e7c4751d6311731c2f773d54a295b40d8aa544bdf176edc8713bd35ec074d82447ca489d91344bf80de140 uglify-js-3.7.0.tgz"