Package Details: google-calendar-nativefier 2024.02.17-3

Git Clone URL: https://aur.archlinux.org/google-calendar-nativefier.git (read-only, click to copy)
Package Base: google-calendar-nativefier
Description: Google Calendar in shared Electron runtime
Upstream URL: https://calendar.google.com
Licenses: MIT
Submitter: akaessens
Maintainer: alecmev
Last Packager: alecmev
Votes: 4
Popularity: 0.000000
First Submitted: 2019-05-21 15:06 (UTC)
Last Updated: 2024-02-19 10:34 (UTC)

Dependencies (3)

Required by (0)

Sources (1)

Latest Comments

« First ‹ Previous 1 2 3 4 Next › Last »

akaessens commented on 2019-06-19 19:23 (UTC)

The below diff fixes directory permissions issues and tidies things a little (e.g. adding a leading _ to the local $instname variable).

Hello, thanks for this, I patched the PKGBUILD with your changes.

jonathon commented on 2019-06-19 18:50 (UTC) (edited on 2019-06-19 18:50 (UTC) by jonathon)

The below diff fixes directory permissions issues and tidies things a little (e.g. adding a leading _ to the local $instname variable).

diff --git a/PKGBUILD b/PKGBUILD
index 2a2cfaa..0f7549a 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,38 +1,34 @@
-pkgname="google-calendar-nativefier"
-pkgver="0.5"
-pkgrel="1"
-pkgdesc="The Google Calendar app helps you spend less time managing your schedule and more time enjoying it."
-arch=("x86_64")
-license=("MIT")
-url="https://calendar.google.com/"
-source=("${pkgname}.png" "${pkgname}.desktop")
-makedepends=("nodejs" "npm" "nodejs-nativefier")
-sha256sums=("SKIP" "SKIP")
-
-instname="google-calendar"
+pkgname=google-calendar-nativefier
+pkgver=0.5
+pkgrel=1
+pkgdesc="Electron wrapper for the Google Calendar web application"
+arch=(x86_64)
+license=(MIT)
+url=https://calendar.google.com
+source=($pkgname.png
+        $pkgname.desktop)
+makedepends=(nodejs nodejs-nativefier npm)
+sha256sums=('f1bb8a24f4d009a4ae31a22bedcc9c54224542288a33cd301fa1d1348cbbac09'
+            '05512fbf7028c19cb766ce7c3dff05975670cc2a4bc187928504723b3fee83d9')
+
+_instname=google-calendar

 build() {
-    cd "${srcdir}"
-
     nativefier "https://calendar.google.com/" \
-      --icon "${pkgname}.png" \
+      --icon $pkgname.png \
       --maximize \
       --internal-urls "(accounts|calendar)\.google" \
       --name "Google Calendar"
 }

 package() {
-  install -dm644 "$pkgdir/opt/"
-  install -dm644 "$pkgdir/usr/bin"
-  install -dm644 "$pkgdir/usr/share/pixmaps"
-  install -dm644 "$pkgdir/usr/share/applications"
-
-  install -m644 "$srcdir/$pkgname.desktop" "$pkgdir/usr/share/applications/$instname.desktop"
-  cp -rL "$srcdir/$instname-linux-"* "$pkgdir/opt/$pkgname"
+    install -d "$pkgdir"/opt "$pkgdir"/usr/{bin,share/pixmaps}
+    install -Dm644 $pkgname.desktop "$pkgdir"/usr/share/applications/$_instname.desktop

-  ln -sf "/opt/$pkgname/$instname" "$pkgdir/usr/bin/$instname"
-  ln -sf "/opt/$pkgname/resources/app/icon.png" "$pkgdir/usr/share/pixmaps/$instname.png"
+    cp -rL $_instname-linux-* "$pkgdir"/opt/$pkgname
+    ln -sf /opt/$pkgname/$_instname "$pkgdir"/usr/bin/$_instname
+    ln -sf /opt/$pkgname/resources/app/icon.png "$pkgdir"/usr/share/pixmaps/$_instname.png

-  chmod 777 "$pkgdir/opt/$pkgname/resources/app/nativefier.json"
+    chmod 666 "$pkgdir"/opt/$pkgname/resources/app/nativefier.json
 }

akaessens commented on 2019-06-19 17:46 (UTC)

great, thanks for your testing as well! have a nice day :)

es20490446e commented on 2019-06-19 17:44 (UTC)

All seems to be working perfect now. Many thanks for your help ;)

akaessens commented on 2019-06-19 17:29 (UTC)

https://youtu.be/9A4QjZ6fy1E

Thanks again, this was a problem of the --internal-urls flag. I updated that to open login urls internally and tested by logging out & back in.

Other links (e.g. maps.google for appointment locations) will be opened externally.

es20490446e commented on 2019-06-19 16:57 (UTC)

https://youtu.be/9A4QjZ6fy1E

es20490446e commented on 2019-06-19 15:56 (UTC)

Same result. Setting the full icon path in the desktop file works dough.

akaessens commented on 2019-06-19 15:36 (UTC) (edited on 2019-06-19 15:38 (UTC) by akaessens)

Icon=chrome-ejjicmeblgpmajnghnpcppodonldlgfn-Default

This icon isn't available on my machine, but I do not have chrome installed. Please make sure that your icon is updated, this can be done by running

sudo update-desktop-database

es20490446e commented on 2019-06-19 13:22 (UTC)

The desktop file now has:

Icon=google-calendar-nativefier

But the issue is still happening.

I think you can reference internal chrome icons without providing one yourself. What if you set "icon" to the following value? Do you see an icon?

Icon=chrome-ejjicmeblgpmajnghnpcppodonldlgfn-Default

akaessens commented on 2019-06-19 09:49 (UTC)

Thanks, i updated the package using $pkgname for the icon. I hope this helps, please let me know if it doesn't, as I didn't have that issue.

That warnings can be ignored, the permissions should be set correctly in the filesystem.