summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO7
-rw-r--r--PKGBUILD3
-rw-r--r--whatsapp-nativefier-notray-hook.install4
3 files changed, 10 insertions, 4 deletions
diff --git a/.SRCINFO b/.SRCINFO
index b427783cb06f..d91fed23bbad 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -2,13 +2,14 @@ pkgbase = whatsapp-nativefier-notray-hook
pkgdesc = Pacman hook to disable whatsapp-nativefier tray after install or upgrade.
pkgver = 1
pkgrel = 1
+ install = whatsapp-nativefier-notray-hook.install
arch = any
- license = GPL
+ license = MIT
depends = whatsapp-nativefier
source = whatsapp-nativefier-notray.hook
source = whatsapp-nativefier-notray
- md5sums = SKIP
- md5sums = SKIP
+ sha1sums = 7288399ae0ece37b1e1d0b8515145bcd24c005c6
+ sha1sums = bd27f755644f15ea26fbbc8004e62f93f852fefe
pkgname = whatsapp-nativefier-notray-hook
diff --git a/PKGBUILD b/PKGBUILD
index 0a2fa7f755c5..2c57b918cf75 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -5,7 +5,8 @@ pkgver=1
pkgrel=1
pkgdesc="Pacman hook to disable whatsapp-nativefier tray after install or upgrade."
arch=("any")
-license=("GPL")
+install=whatsapp-nativefier-notray-hook.install
+license=("MIT")
depends=('whatsapp-nativefier')
source=(whatsapp-nativefier-notray.hook whatsapp-nativefier-notray)
sha1sums=("7288399ae0ece37b1e1d0b8515145bcd24c005c6"
diff --git a/whatsapp-nativefier-notray-hook.install b/whatsapp-nativefier-notray-hook.install
new file mode 100644
index 000000000000..270eaae0a2ff
--- /dev/null
+++ b/whatsapp-nativefier-notray-hook.install
@@ -0,0 +1,4 @@
+post_install() {
+ echo "Disabling tray in the current whatsapp-nativefier install"
+ sed -i 's/"tray":true/"tray":false/g' /opt/whatsapp-nativefier/resources/app/nativefier.json
+}