diff options
author | Stephan Springer | 2019-04-18 14:38:59 +0200 |
---|---|---|
committer | Stephan Springer | 2019-04-18 14:38:59 +0200 |
commit | 76fc2e9c098a3dc3431917064b5d70e224423004 (patch) | |
tree | 26be0cf1cc8145bf1a16b521492aeb0028663816 | |
parent | 96663fea25160adfb49c2812faa561066f8ad5a0 (diff) | |
download | aur-76fc2e9c098a3dc3431917064b5d70e224423004.tar.gz |
use native Hunspell dictionaries
-rw-r--r-- | .SRCINFO | 3 | ||||
-rw-r--r-- | PKGBUILD | 11 |
2 files changed, 11 insertions, 3 deletions
@@ -1,7 +1,7 @@ pkgbase = signal-desktop-bin pkgdesc = Private messaging from your desktop pkgver = 1.24.1 - pkgrel = 1 + pkgrel = 2 url = https://github.com/signalapp/Signal-Desktop arch = x86_64 license = GPL3 @@ -11,6 +11,7 @@ pkgbase = signal-desktop-bin depends = nss depends = xdg-utils depends = libxss + optdepends = hunspell-en_US: US English hunspell dictionaries provides = signal-desktop conflicts = signal options = !strip @@ -3,15 +3,16 @@ pkgname=signal-desktop-bin pkgver=1.24.1 -pkgrel=1 +pkgrel=2 pkgdesc='Private messaging from your desktop' arch=('x86_64') url='https://github.com/signalapp/Signal-Desktop' license=('GPL3') +depends=('gconf' 'gtk3' 'libnotify' 'nss' 'xdg-utils' 'libxss') +optdepends=('hunspell-en_US: US English hunspell dictionaries') provides=('signal-desktop') conflicts=('signal') options=('!strip') -depends=('gconf' 'gtk3' 'libnotify' 'nss' 'xdg-utils' 'libxss') source=("https://updates.signal.org/desktop/apt/pool/main/s/signal-desktop/signal-desktop_${pkgver}_amd64.deb") sha256sums=('392a8ce97b8a41ee9f55d39b07ce7a6c7b591c5cc607d5b22d323ed849e7b9a4') @@ -30,4 +31,10 @@ package() { sed -e 's,^\(Name=.*\),\1 (Start in Tray),' -e 's,^\(Exec=.*\)%U,\1--start-in-tray %U,' \ "${pkgdir}"/usr/share/applications/signal-desktop.desktop \ > "${pkgdir}"/usr/share/applications/signal-desktop-tray.desktop + + # use native Hunspell dictionaries + # unfortunately only US-English is supported, see https://github.com/signalapp/Signal-Desktop/issues/1659 + rm -r "${pkgdir}"/opt/Signal/resources/app.asar.unpacked/node_modules/spellchecker/vendor/hunspell_dictionaries + ln -s /usr/share/hunspell \ + "${pkgdir}"/opt/Signal/resources/app.asar.unpacked/node_modules/spellchecker/vendor/hunspell_dictionaries } |