Hi, thanks for providing the AUR package for betterbird. Herewith a patch to make betterbird use the system dictionaries (via hunspell) so that the user does not have to download dictionaries themselves. This works just as in the thunderbird Arch package.
diff --git a/.SRCINFO b/.SRCINFO
index 192ce4c..3952ede 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -6,10 +6,14 @@ pkgbase = betterbird-bin
arch = x86_64
license = MPL2
depends = dbus-glib
+ depends = hunspell
+ optdepends = hunspell-en_US
provides = betterbird=115.7.0
source = https://www.betterbird.eu/downloads/LinuxArchive/betterbird-115.7.0-bb23.en-US.linux-x86_64.tar.bz2
source = betterbird.desktop
+ source = vendor-prefs.js
sha256sums = d7e6c4bbebc99619ea2a1b8448bab7393e9ee787de9375a0cdf59c4c0745df6f
sha256sums = b664d5453512ba1c8a58699d106fb1248991dbae0ee44464484be0886278945b
+ sha256sums = 3bc15133a2807f31ea5c80d959bf3426ef3394ceb698c5544f2ce44e82a1b51e
pkgname = betterbird-bin
diff --git a/PKGBUILD b/PKGBUILD
index 2d39769..30d2628 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -8,7 +8,8 @@ pkgdesc="EN-US // Betterbird is a fine-tuned version of Mozilla Thunderbird, Thu
arch=('x86_64')
url="https://www.betterbird.eu/index.html"
license=('MPL2')
-depends=('dbus-glib')
+depends=('dbus-glib' 'hunspell')
+optdepends=('hunspell-en_US')
provides=("betterbird=${pkgver}")
conflicts=()
source=(
@@ -17,6 +18,7 @@ source=(
# "https://www.betterbird.eu/downloads/LinuxArchive/${_pkgname}-${pkgver//_/-}-${_build}-build2.en-US.linux-x86_64.tar.bz2"
"https://www.betterbird.eu/downloads/LinuxArchive/${_pkgname}-${pkgver//_/-}-${_build}.en-US.linux-x86_64.tar.bz2"
"betterbird.desktop"
+ "vendor-prefs.js"
)
package() {
@@ -26,7 +28,9 @@ package() {
cp -r "${srcdir}/${_pkgname}/" "${pkgdir}/opt/${_pkgname}"
install -m644 "${srcdir}/${_pkgname}.desktop" "${pkgdir}/usr/share/applications/${_pkgname}.desktop"
+ install -m644 "${srcdir}/vendor-prefs.js" -t "${pkgdir}/opt/${_pkgname}/defaults/pref"
ln -s /opt/$_pkgname/betterbird "$pkgdir"/usr/bin/$_pkgname
+ ln -s /usr/share/hunspell "${pkgdir}/opt/${_pkgname}/dictionaries"
echo "
@@ -43,4 +47,5 @@ package() {
done
}
sha256sums=('d7e6c4bbebc99619ea2a1b8448bab7393e9ee787de9375a0cdf59c4c0745df6f'
- 'b664d5453512ba1c8a58699d106fb1248991dbae0ee44464484be0886278945b')
+ 'b664d5453512ba1c8a58699d106fb1248991dbae0ee44464484be0886278945b'
+ '3bc15133a2807f31ea5c80d959bf3426ef3394ceb698c5544f2ce44e82a1b51e')
This is the content of the additional vendor-prefs.js file:
// Use system-provided dictionaries
pref("spellchecker.dictionary_path", "/usr/share/hunspell");
Pinned Comments
Posi commented on 2022-09-08 17:23 (UTC)
Thank you for marking the package as out-of-date. But you not need.
I am working with the founder of betterbird and receive the information about the new version immediately. And I am not 24 hours in front of my PC. Sometimes I have a private life and need to sleep. But you can be sure, I am doing my best to update as soon as possible.
Kind regards
Posi81