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

Felix Yan felixonmars at archlinux.org
Wed Aug 14 04:33:31 UTC 2019


    Date: Wednesday, August 14, 2019 @ 04:33:31
  Author: felixonmars
Revision: 499099

archrelease: copy trunk to community-testing-any

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

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

Copied: acorn/repos/community-testing-any/PKGBUILD (from rev 499098, acorn/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD	                        (rev 0)
+++ community-testing-any/PKGBUILD	2019-08-14 04:33:31 UTC (rev 499099)
@@ -0,0 +1,22 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=acorn
+pkgver=7.0.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=('3da17f31dbb18a3618b7bba754646e76cd6f042f5b1716cd7fe556aa138295f760cbb46556442ab7ad748a0d7fcb14e0b0321f5b57160de9791016cecb78ddb5')
+
+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