diff options
author | Mark Blakeney | 2018-11-08 14:52:06 +1000 |
---|---|---|
committer | Mark Blakeney | 2018-11-08 14:52:06 +1000 |
commit | 341a6a9710257909f5920a91f6839ac127f80d83 (patch) | |
tree | 59f8498fd3db5de70af8da54529c6eab63e15e23 | |
parent | 47307337a267a81f63ded6ec5112201c11bcb5ff (diff) | |
download | aur-341a6a9710257909f5920a91f6839ac127f80d83.tar.gz |
Replace all 16px tray icons with 32px
Should fix corrupted tray icons.
See https://answers.microsoft.com/en-us/skype/forum/skype_linux-skype_startms-skype_installms/system-tray-icon-in-xfce/d3f162bf-0bbf-481b-90a1-f43cae9a86cc?messageId=90d7e7da-7ef2-4922-af24-a7093f4a7712.
-rw-r--r-- | .SRCINFO | 3 | ||||
-rw-r--r-- | PKGBUILD | 15 |
2 files changed, 16 insertions, 2 deletions
@@ -1,10 +1,11 @@ pkgbase = skypeforlinux-stable-bin pkgdesc = Skype for Linux - Stable/Release Version pkgver = 8.33.0.41 - pkgrel = 1 + pkgrel = 2 url = http://www.skype.com arch = x86_64 license = custom + makedepends = asar depends = gtk3 depends = libxss depends = gconf @@ -4,13 +4,14 @@ _pkgname=skypeforlinux pkgname=$_pkgname-stable-bin pkgver=8.33.0.41 -pkgrel=1 +pkgrel=2 pkgdesc="Skype for Linux - Stable/Release Version" arch=("x86_64") url="http://www.skype.com" license=("custom") depends=("gtk3" "libxss" "gconf" "alsa-lib" "libxtst" "libsecret" "nss" "glibc>=2.28-4") optdepends=("gnome-keyring") +makedepends=("asar") conflicts=("$_pkgname" "$_pkgname-bin" "$_pkgname-preview-bin" "$_pkgname-beta-bin" "skype") provides=("$_pkgname" "skype") source=( @@ -24,6 +25,18 @@ package() { mv "$pkgdir/usr/share/$_pkgname/LICENSES.chromium.html" \ "$pkgdir/usr/share/licenses/$pkgname/" rm -rf "$pkgdir/opt" + + # Replace all 16px tray icons with 32px. + _p="/usr/share/skypeforlinux/resources" + cd "$pkgdir/$_p" + asar extract app.asar _tmp + cd _tmp/images/tray + find . -iname '*@2x.png' | while read f; do + mv $f ${f//@2x/} + done + cd "$pkgdir/$_p" + asar pack _tmp app.asar + rm -rf _tmp } # vim:set ts=2 sw=2 et: |