summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenoît Zugmeyer2018-06-16 13:43:15 +0200
committerBenoît Zugmeyer2018-06-16 13:43:15 +0200
commit1ea4f93e79ada9738d2a9320ae6aa66871b79ef0 (patch)
tree8e3e67806de41521cee7c9c20f7dc48063ed3ec2
downloadaur-uglify-es.tar.gz
initial release
-rw-r--r--.SRCINFO18
-rw-r--r--PKGBUILD24
2 files changed, 42 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..93eb0d65547
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+# Generated by mksrcinfo v8
+# Sat Jun 16 11:43:05 UTC 2018
+pkgbase = uglify-es
+ pkgdesc = JavaScript parser, mangler/compressor and beautifier toolkit for ES6+
+ pkgver = 3.3.9
+ pkgrel = 1
+ url = http://lisperator.net/uglifyjs
+ arch = any
+ license = BSD
+ makedepends = npm
+ depends = nodejs
+ conflicts = uglify-js
+ noextract = uglify-es-3.3.9.tgz
+ source = https://registry.npmjs.org/uglify-es/-/uglify-es-3.3.9.tgz
+ sha512sums = afe314d2b7efe0bff479e5b7c59addd7ab783597caf0b77849656095805bedecf9b971561ee551b3ac424eb7f5ca2aecf5ae23e18dbb9e7ed245f3babfaed7b1
+
+pkgname = uglify-es
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..d4a9c22d5b3
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,24 @@
+pkgname=uglify-es
+pkgver=3.3.9
+pkgrel=1
+pkgdesc="JavaScript parser, mangler/compressor and beautifier toolkit for ES6+"
+arch=('any')
+url='http://lisperator.net/uglifyjs'
+license=('BSD')
+depends=('nodejs')
+makedepends=('npm')
+conflicts=('uglify-js')
+source=(https://registry.npmjs.org/$pkgname/-/$pkgname-$pkgver.tgz)
+noextract=($pkgname-$pkgver.tgz)
+sha512sums=('afe314d2b7efe0bff479e5b7c59addd7ab783597caf0b77849656095805bedecf9b971561ee551b3ac424eb7f5ca2aecf5ae23e18dbb9e7ed245f3babfaed7b1')
+
+package() {
+ npm install -g --user root --prefix "$pkgdir"/usr "$srcdir"/$pkgname-$pkgver.tgz
+ mkdir -p "$pkgdir/usr/share/licenses/$pkgname"
+ ln -s "../../../lib/node_modules/uglify-js/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/"
+
+ # Fix npm derp
+ find "$pkgdir/usr" -type d -exec chmod 755 '{}' +
+}
+
+# vim:set ts=2 sw=2 et: