[arch-commits] Commit in cozy-desktop/trunk (PKGBUILD)

Bruno Pagani archange at archlinux.org
Wed Oct 3 09:26:33 UTC 2018


    Date: Wednesday, October 3, 2018 @ 09:26:33
  Author: archange
Revision: 389144

Revert to yarn, fix FS#60162

Using npm was causing issues, and yarn actually works again.

Modified:
  cozy-desktop/trunk/PKGBUILD

----------+
 PKGBUILD |   15 +++++++++------
 1 file changed, 9 insertions(+), 6 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-10-03 09:03:06 UTC (rev 389143)
+++ PKGBUILD	2018-10-03 09:26:33 UTC (rev 389144)
@@ -2,13 +2,13 @@
 
 pkgname=cozy-desktop
 pkgver=3.9.0
-pkgrel=1
+pkgrel=2
 pkgdesc="File synchronisation for Cozy Cloud on Desktop"
 arch=('any')
-url="https://docs.cozy.io/en/sync/desktop/"
+url="https://cozy-labs.github.io/cozy-desktop/"
 license=('AGPL3')
 depends=('electron' 'nodejs-lts-carbon')
-makedepends=('npm' 'git' 'node-gyp' 'python2')
+makedepends=('yarn' 'git' 'node-gyp' 'python2')
 source=(${pkgname}-${pkgver}.tar.gz::"https://github.com/cozy-labs/${pkgname}/archive/v${pkgver}.tar.gz"
         "${pkgname}.desktop"
         "${pkgname}.sh"
@@ -20,17 +20,20 @@
 
 prepare() {
     cd ${pkgname}-${pkgver}
-    npm install --cache "${srcdir}"/npm-cache
+    #npm install --cache "${srcdir}"/npm-cache
+    yarn install
 }
 
 build() {
     cd ${pkgname}-${pkgver}
-    npm run build --cache "${srcdir}"/npm-cache
+    #npm run build --cache "${srcdir}"/npm-cache
+    yarn build
 }
 
 package() {
     cd ${pkgname}-${pkgver}
-    npm run dist --dir --cache "${srcdir}"/npm-cache
+    #npm run dist --dir --cache "${srcdir}"/npm-cache
+    yarn dist --dir
 
     install -dm755 "${pkgdir}"/usr/lib/${pkgname}
     cp -r dist/linux-unpacked/resources "${pkgdir}"/usr/lib/${pkgname}/



More information about the arch-commits mailing list