[arch-commits] Commit in hunspell-pl/trunk (PKGBUILD)

Andreas Radke andyrtr at archlinux.org
Mon Nov 16 10:16:50 UTC 2020


    Date: Monday, November 16, 2020 @ 10:16:50
  Author: andyrtr
Revision: 755191

upgpkg: hunspell-pl 20201011-2: fix file encoding - FS#68481

Modified:
  hunspell-pl/trunk/PKGBUILD

----------+
 PKGBUILD |   10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-11-16 10:02:31 UTC (rev 755190)
+++ PKGBUILD	2020-11-16 10:16:50 UTC (rev 755191)
@@ -4,7 +4,7 @@
 
 pkgname=hunspell-pl
 pkgver=20201011
-pkgrel=1
+pkgrel=2
 pkgdesc='Polish dictionary for Hunspell'
 arch=('any')
 url='https://www.sjp.pl/slownik/ort/'
@@ -16,6 +16,14 @@
 
 prepare() {
   bsdtar -xf pl_PL.zip
+
+  # fix file encoding - FS#68481
+  # check for broken files using
+  # file -i  $(pacman -Ql hunspell-de | sed "s/hunspell-de//") | grep iso
+  for file in pl_PL.aff pl_PL.dic; do
+      mv $file $file.ISO-8859
+      iconv -f iso-8859-1 -t utf-8 $file.ISO-8859 -o $file
+  done
 }
 
 package() {



More information about the arch-commits mailing list