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

Felix Yan felixonmars at archlinux.org
Thu Jul 4 14:51:14 UTC 2019


    Date: Thursday, July 4, 2019 @ 14:51:14
  Author: felixonmars
Revision: 487436

archrelease: copy trunk to community-testing-any

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

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

Copied: acorn/repos/community-testing-any/PKGBUILD (from rev 487435, acorn/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD	                        (rev 0)
+++ community-testing-any/PKGBUILD	2019-07-04 14:51:14 UTC (rev 487436)
@@ -0,0 +1,22 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=acorn
+pkgver=6.2.0
+epoch=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=('f287bbd8ddd63cc8c0fb6cd51bbd486b49d767c0e9407f90cb21cefa9d3a8d3f1e83c1461b715b714222f0ace21e501f85e25065ea2a6efab59904901d72982f')
+
+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