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

Felix Yan felixonmars at archlinux.org
Mon Aug 15 02:11:04 UTC 2016


    Date: Monday, August 15, 2016 @ 02:11:04
  Author: felixonmars
Revision: 186755

archrelease: copy trunk to community-any

Added:
  acorn/repos/community-any/
  acorn/repos/community-any/PKGBUILD
    (from rev 186754, acorn/trunk/PKGBUILD)

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

Copied: acorn/repos/community-any/PKGBUILD (from rev 186754, acorn/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2016-08-15 02:11:04 UTC (rev 186755)
@@ -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/"
+}



More information about the arch-commits mailing list