summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorKirill Goncharov2021-04-14 13:36:36 +0300
committerKirill Goncharov2021-04-14 13:36:36 +0300
commitfe53a647dd511b9a93fc9788233f7d63408403db (patch)
tree8b7b696e8ef791ae379cd32892b1a25ab4690055
parentde955f52ef1da3ea3c332734d3164747ad8d3c4e (diff)
downloadaur-fe53a647dd511b9a93fc9788233f7d63408403db.tar.gz
Update package() script
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD10
2 files changed, 6 insertions, 6 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 25cc4f05127..0949174e319 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = mermaid-cli
pkgdesc = Generation of diagram and flowchart from text in a similar manner as markdown (CLI)
pkgver = 8.9.2
- pkgrel = 2
+ pkgrel = 3
url = https://github.com/mermaid-js/mermaid-cli
arch = any
license = MIT
diff --git a/PKGBUILD b/PKGBUILD
index 41be6c6a964..408c00d4d93 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
pkgname=mermaid-cli
pkgver=8.9.2
-pkgrel=2
+pkgrel=3
pkgdesc='Generation of diagram and flowchart from text in a similar manner as markdown (CLI)'
arch=('any')
url='https://github.com/mermaid-js/mermaid-cli'
@@ -17,13 +17,13 @@ sha256sums=('29082de0a5c57a191406e18736554bc2388f7e4c18d3b58db061598a11813df0')
noextract=("${_npmname}-${_npmver}.tgz")
package() {
- npm install --global --production --user root --prefix "${pkgdir}/usr" "${_npmname}-${_npmver}.tgz"
+ npm install --global --production --prefix "${pkgdir}/usr" "${_npmname}-${_npmver}.tgz"
# -> https://wiki.archlinux.org/index.php/Node.js_package_guidelines
# 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 gives ownership of ALL FILES to build user
# https://bugs.archlinux.org/task/63396
- chown -R root:root "$pkgdir"
+ chown -R root:root "${pkgdir}"
}