[arch-commits] Commit in cozy-desktop/repos (4 files)
Bruno Pagani
archange at archlinux.org
Mon Mar 8 16:04:04 UTC 2021
Date: Monday, March 8, 2021 @ 16:04:03
Author: archange
Revision: 886923
archrelease: copy trunk to community-staging-any
Added:
cozy-desktop/repos/community-staging-any/
cozy-desktop/repos/community-staging-any/PKGBUILD
(from rev 886922, cozy-desktop/trunk/PKGBUILD)
cozy-desktop/repos/community-staging-any/cozy-desktop.desktop
(from rev 886922, cozy-desktop/trunk/cozy-desktop.desktop)
cozy-desktop/repos/community-staging-any/cozy-desktop.sh
(from rev 886922, cozy-desktop/trunk/cozy-desktop.sh)
----------------------+
PKGBUILD | 50 +++++++++++++++++++++++++++++++++++++++++++++++++
cozy-desktop.desktop | 9 ++++++++
cozy-desktop.sh | 3 ++
3 files changed, 62 insertions(+)
Copied: cozy-desktop/repos/community-staging-any/PKGBUILD (from rev 886922, cozy-desktop/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2021-03-08 16:04:03 UTC (rev 886923)
@@ -0,0 +1,50 @@
+# Maintainer: Bruno Pagani <archange at archlinux.org>
+
+pkgname=cozy-desktop
+pkgver=3.26.0
+pkgrel=2
+pkgdesc="File synchronisation for Cozy Cloud on Desktop"
+arch=(any)
+url="https://cozy-labs.github.io/cozy-desktop/"
+license=(AGPL3)
+depends=(electron11)
+makedepends=(nodejs-lts-erbium yarn git node-gyp python)
+source=(https://github.com/cozy-labs/${pkgname}/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz
+ https://github.com/cozy-labs/${pkgname}/releases/download/v${pkgver}/Cozy-Drive-${pkgver}-x86_64.AppImage
+ ${pkgname}.desktop
+ ${pkgname}.sh)
+sha256sums=('31a710f383cd089d3b08b790a481cc970aaadf01b2f5000fd751319ac7814720'
+ '3f4024d012b11fc879081c1b340a7de6f378e62249ebf5a5096915ffd2c3153b'
+ '563edd5a43c7f06080e03bec5f4e46154227f7e163500950ea39ecad466b198a'
+ '5d77f8310100b20f90782c96d7d3061eff98adbecdbff8b14e03edb0f5df3ccf')
+
+prepare() {
+ cd ${pkgname}-${pkgver}
+ yarn install
+}
+
+build() {
+ cd ${pkgname}-${pkgver}
+ yarn build
+}
+
+package() {
+ cd ${pkgname}-${pkgver}
+ yarn dist --dir
+
+ install -d "${pkgdir}"/usr/lib/${pkgname}
+ cp -r dist/linux-unpacked/resources/* "${pkgdir}"/usr/lib/${pkgname}/
+
+ rm "${pkgdir}"/usr/lib/cozy-desktop/app.asar.unpacked/gui/scripts/macos-add-favorite.py
+ rmdir "${pkgdir}"/usr/lib/cozy-desktop/app.asar.unpacked/gui/{scripts/,}
+ rm -r "${pkgdir}"/usr/lib/cozy-desktop/regedit
+
+ cd "${srcdir}"
+ chmod +x Cozy-Drive-${pkgver}-x86_64.AppImage
+ ./Cozy-Drive-${pkgver}-x86_64.AppImage --appimage-extract
+ cp -r squashfs-root/usr/share "${pkgdir}"/usr/
+ chmod a+rX -R "${pkgdir}"/usr/share
+
+ install -Dm755 ${pkgname}.sh "${pkgdir}"/usr/bin/${pkgname}
+ install -Dm644 ${pkgname}.desktop "${pkgdir}"/usr/share/applications/${pkgname}.desktop
+}
Copied: cozy-desktop/repos/community-staging-any/cozy-desktop.desktop (from rev 886922, cozy-desktop/trunk/cozy-desktop.desktop)
===================================================================
--- community-staging-any/cozy-desktop.desktop (rev 0)
+++ community-staging-any/cozy-desktop.desktop 2021-03-08 16:04:03 UTC (rev 886923)
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Name=Cozy Desktop
+Comment=Save them safely in your open source personal cloud, access them anywhere, anytime with the mobile application and share them with the world or just your friends and colleagues. You can host your own Cozy Cloud, and or use the hosting services. Your freedom to chose is why you can trust us.
+Exec=/usr/bin/cozy-desktop
+Terminal=false
+Type=Application
+Icon=cozydrive
+StartupNotify=true
+Categories=Network;FileTransfer;
Copied: cozy-desktop/repos/community-staging-any/cozy-desktop.sh (from rev 886922, cozy-desktop/trunk/cozy-desktop.sh)
===================================================================
--- community-staging-any/cozy-desktop.sh (rev 0)
+++ community-staging-any/cozy-desktop.sh 2021-03-08 16:04:03 UTC (rev 886923)
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+electron11 /usr/lib/cozy-desktop/app.asar "$@"
More information about the arch-commits
mailing list