summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO8
-rw-r--r--PKGBUILD16
2 files changed, 14 insertions, 10 deletions
diff --git a/.SRCINFO b/.SRCINFO
index af4fb18b233..0025db69c55 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = nodejs-google-clasp
pkgdesc = Develop Apps Script Projects locally
- pkgver = 2.2.1
+ pkgver = 2.3.0
pkgrel = 1
url = https://github.com/google/clasp
arch = any
@@ -8,9 +8,9 @@ pkgbase = nodejs-google-clasp
makedepends = npm
depends = nodejs
optdepends = typescript: autocompletion and linting
- noextract = clasp-2.2.1.tgz
- source = https://registry.npmjs.org/@google/clasp/-/clasp-2.2.1.tgz
- sha256sums = 971a7eca0e17599e4659e3344b1e8c9f2343cb181d7843ea8a6f9a42249c2809
+ noextract = clasp-2.3.0.tgz
+ source = https://registry.npmjs.org/@google/clasp/-/clasp-2.3.0.tgz
+ sha256sums = b2dd6db7f3e071f09e99d8f4cad0843d9044d53e82bab147a8ad483da0347cfb
pkgname = nodejs-google-clasp
diff --git a/PKGBUILD b/PKGBUILD
index 3307fbb4ae6..ccb34f06710 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
_npmname='@google/clasp'
pkgname="nodejs-google-clasp"
-pkgver=2.2.1
+pkgver=2.3.0
pkgrel=1
pkgdesc='Develop Apps Script Projects locally'
arch=('any')
@@ -13,15 +13,19 @@ makedepends=('npm')
optdepends=('typescript: autocompletion and linting')
source=("https://registry.npmjs.org/$_npmname/-/${_npmname##*/}-$pkgver.tgz")
noextract=("${_npmname##*/}-$pkgver.tgz")
-sha256sums=('971a7eca0e17599e4659e3344b1e8c9f2343cb181d7843ea8a6f9a42249c2809')
+sha256sums=('b2dd6db7f3e071f09e99d8f4cad0843d9044d53e82bab147a8ad483da0347cfb')
-package() {
- cd $srcdir
- npm install -g --user root --prefix "$pkgdir"/usr "${_npmname##*/}-$pkgver.tgz"
+build() {
+ # Due to npm permission issues, install in build and copy files in package.
+ # related bug report: https://bugs.archlinux.org/task/63396
+ npm install -g --prefix "${srcdir}"/usr "${_npmname##*/}-$pkgver.tgz"
+}
+package() {
+ cp -R usr "${pkgdir}"
# 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 {} +
+ chmod -R u=rwX,go=rX "${pkgdir}"
# Rename command because clasp from [community] has /usr/bin/clasp
mv "${pkgdir}"/usr/bin/{,g}clasp