diff options
author | imlonghao | 2021-04-20 15:29:43 +0000 |
---|---|---|
committer | imlonghao | 2021-04-20 15:29:43 +0000 |
commit | 3ebaa2f8ab5f4ace7b5c804e36115ecc296a6d8d (patch) | |
tree | 9edf6e33a83896dcd00e82a0def458ee3c7afa80 | |
parent | 577a391d7ff1e4a5c7f4e510dbb07ea3760ae1c6 (diff) | |
download | aur-3ebaa2f8ab5f4ace7b5c804e36115ecc296a6d8d.tar.gz |
update npm install command
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 12 |
2 files changed, 7 insertions, 7 deletions
@@ -1,7 +1,7 @@ pkgbase = readability-extractor-git pkgdesc = Wrapper around mozilla/readability to keep archivebox free from nodejs pkgver = r7.0098f14 - pkgrel = 1 + pkgrel = 2 url = https://github.com/pirate/readability-extractor arch = any license = MIT @@ -3,7 +3,7 @@ pkgname=readability-extractor-git _pkgname=readability-extractor pkgver=r7.0098f14 -pkgrel=1 +pkgrel=2 pkgdesc="Wrapper around mozilla/readability to keep archivebox free from nodejs" arch=('any') url="https://github.com/pirate/readability-extractor" @@ -25,13 +25,13 @@ prepare() { } package() { - npm install -g --user root --prefix "$pkgdir"/usr $_pkgname.tar.gz + npm install -g --prefix "${pkgdir}/usr" $_pkgname.tar.gz # Non-deterministic race in npm gives 777 permissions to random directories. - # See https://github.com/npm/npm/issues/9359 for details. - find "${pkgdir}"/usr -type d -exec chmod 755 {} + + # See https://github.com/npm/cli/issues/1103 for details. + find "${pkgdir}/usr" -type d -exec chmod 755 {} + - # npm installs package.json owned by build user + # npm gives ownership of ALL FILES to build user # https://bugs.archlinux.org/task/63396 - chown -R root:root "$pkgdir" + chown -R root:root "${pkgdir}" } |