[arch-commits] Commit in marked/trunk (PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Fri Jan 3 14:00:48 UTC 2020
Date: Friday, January 3, 2020 @ 14:00:47
Author: felixonmars
Revision: 547593
upgpkg: marked 0.8.0-2
fix broken permissions
Modified:
marked/trunk/PKGBUILD
----------+
PKGBUILD | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2020-01-03 13:59:28 UTC (rev 547592)
+++ PKGBUILD 2020-01-03 14:00:47 UTC (rev 547593)
@@ -2,7 +2,7 @@
pkgname=marked
pkgver=0.8.0
-pkgrel=1
+pkgrel=2
pkgdesc="A markdown parser built for speed"
arch=('any')
url='https://github.com/chjj/marked'
@@ -15,6 +15,15 @@
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"
+
install -d "$pkgdir"/usr/share/licenses/$pkgname
ln -s ../../../lib/node_modules/marked/LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}
More information about the arch-commits
mailing list