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

Andreas Radke andyrtr at archlinux.org
Mon Nov 16 09:28:55 UTC 2020


    Date: Monday, November 16, 2020 @ 09:28:55
  Author: andyrtr
Revision: 401249

upgpkg: hunspell-it 2.4-8: fix file encoding - FS#68481

Modified:
  hunspell-it/trunk/PKGBUILD

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

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-11-16 09:24:39 UTC (rev 401248)
+++ PKGBUILD	2020-11-16 09:28:55 UTC (rev 401249)
@@ -4,7 +4,7 @@
 pkgver=2.4
 _pkgver=2_4
 _date=2007_09_01
-pkgrel=7
+pkgrel=8
 pkgdesc="Italian dictionary for Hunspell"
 arch=('any')
 url="https://sourceforge.net/projects/linguistico/"
@@ -17,6 +17,14 @@
 build() {
   # Fix dic file empty lines (FS#22275)
   sed '/^\/$/d' -i it_IT.dic
+
+  # fix file encoding - FS#68481
+  # check for broken files using
+  # file -i  $(pacman -Ql hunspell-it | sed "s/hunspell-it//") | grep iso
+  for file in it_IT.aff it_IT.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