[arch-commits] Commit in acorn/repos (2 files)

Felix Yan felixonmars at archlinux.org
Fri Sep 14 16:11:42 UTC 2018


    Date: Friday, September 14, 2018 @ 16:11:42
  Author: felixonmars
Revision: 380914

archrelease: copy trunk to community-testing-any

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

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

Copied: acorn/repos/community-testing-any/PKGBUILD (from rev 380913, acorn/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD	                        (rev 0)
+++ community-testing-any/PKGBUILD	2018-09-14 16:11:42 UTC (rev 380914)
@@ -0,0 +1,21 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=acorn
+pkgver=6.0.1
+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=(https://registry.npmjs.org/$pkgname/-/$pkgname-$pkgver.tgz)
+noextract=($pkgname-$pkgver.tgz)
+sha512sums=('4a2c20ad1b910f60f547aaa3c30a28a4a7024e49a62168f2d4cd795aff8d93fed552c05a7783fc18e3dfb76b7a7280d91b44ee47976af68d6fd20f30a3b17af8')
+
+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/$pkgname/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/"
+}



More information about the arch-commits mailing list