Package Details: google-calendar-nativefier 0.6-1

Git Clone URL: https://aur.archlinux.org/google-calendar-nativefier.git (read-only)
Package Base: google-calendar-nativefier
Description: Electron wrapper for the Google Calendar web application
Upstream URL: https://calendar.google.com
Licenses: MIT
Submitter: pinkman
Maintainer: pinkman
Last Packager: pinkman
Votes: 1
Popularity: 0.142657
First Submitted: 2019-05-21 15:06
Last Updated: 2019-06-19 19:20

Latest Comments

1 2 Next › Last »

pinkman commented on 2019-06-19 19:23

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

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
 }

pinkman commented on 2019-06-19 17:46

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

es20490446e commented on 2019-06-19 17:44

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

pinkman commented on 2019-06-19 17:29

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

https://youtu.be/9A4QjZ6fy1E

es20490446e commented on 2019-06-19 15:56

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

pinkman commented on 2019-06-19 15:36

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

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

pinkman commented on 2019-06-19 09:49

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.