[arch-commits] Commit in (acorn acorn/repos acorn/trunk acorn/trunk/PKGBUILD)

Felix Yan felixonmars at archlinux.org
Mon Aug 15 02:10:50 UTC 2016


    Date: Monday, August 15, 2016 @ 02:10:50
  Author: felixonmars
Revision: 186754

addpkg: acorn 3.3.0-1

Added:
  acorn/
  acorn/repos/
  acorn/trunk/
  acorn/trunk/PKGBUILD

----------+
 PKGBUILD |   23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

Added: acorn/trunk/PKGBUILD
===================================================================
--- acorn/trunk/PKGBUILD	                        (rev 0)
+++ acorn/trunk/PKGBUILD	2016-08-15 02:10:50 UTC (rev 186754)
@@ -0,0 +1,23 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=acorn
+pkgver=3.3.0
+pkgrel=1
+pkgdesc='A tiny, fast JavaScript parser, written completely in JavaScript.'
+arch=('any')
+url='https://github.com/ternjs/acorn'
+license=('MIT')
+depends=('nodejs')
+makedepends=('npm')
+source=(http://registry.npmjs.org/$pkgname/-/$pkgname-$pkgver.tgz)
+noextract=($pkgname-$pkgver.tgz)
+md5sums=('e851da28b89b69e6c1aa7f0ed8d83154')
+
+package() {
+  npm install -g --user root --prefix "$pkgdir"/usr "$srcdir"/$pkgname-$pkgver.tgz
+  rm -r "$pkgdir"/usr/etc
+
+  mkdir -p "$pkgdir/usr/share/licenses/$pkgname"
+  ln -s "../../../lib/node_modules/$pkgname/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/"
+}


Property changes on: acorn/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property



More information about the arch-commits mailing list