[arch-commits] Commit in acorn/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Wed Aug 12 20:51:22 UTC 2020
Date: Wednesday, August 12, 2020 @ 20:51:22
Author: felixonmars
Revision: 676759
archrelease: copy trunk to community-testing-any
Added:
acorn/repos/community-testing-any/
acorn/repos/community-testing-any/PKGBUILD
(from rev 676758, acorn/trunk/PKGBUILD)
----------+
PKGBUILD | 30 ++++++++++++++++++++++++++++++
1 file changed, 30 insertions(+)
Copied: acorn/repos/community-testing-any/PKGBUILD (from rev 676758, acorn/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD (rev 0)
+++ community-testing-any/PKGBUILD 2020-08-12 20:51:22 UTC (rev 676759)
@@ -0,0 +1,30 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=acorn
+pkgver=8.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=('c2e26606f28ff699233ddda6fbab2435c80ae92e3775fe5c45b513590967b3caee91cbb96dc4afc7d7998ef3574ed15ee3ea02b2502f221342bd805effaf7133')
+
+package() {
+ npm install -g --user root --prefix "$pkgdir"/usr "$srcdir"/$pkgname-$pkgver.tgz
+
+ # Non-deterministic race in npm gives 777 permissions to random directories.
+ # See https://github.com/npm/npm/issues/9359 for details.
+ chmod -R u=rwX,go=rX "$pkgdir"
+
+ # npm installs package.json owned by build user
+ # https://bugs.archlinux.org/task/63396
+ chown -R root:root "$pkgdir"
+
+ 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