[arch-commits] Commit in hunspell-it/repos/community-any (PKGBUILD PKGBUILD)
Antonio Rojas
arojas at gemini.archlinux.org
Fri Oct 1 19:39:41 UTC 2021
Date: Friday, October 1, 2021 @ 19:39:41
Author: arojas
Revision: 1026562
archrelease: copy trunk to community-any
Added:
hunspell-it/repos/community-any/PKGBUILD
(from rev 1026561, hunspell-it/trunk/PKGBUILD)
Deleted:
hunspell-it/repos/community-any/PKGBUILD
----------+
PKGBUILD | 121 ++++++++++++++++++++++++++++++-------------------------------
1 file changed, 61 insertions(+), 60 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2021-10-01 19:39:32 UTC (rev 1026561)
+++ PKGBUILD 2021-10-01 19:39:41 UTC (rev 1026562)
@@ -1,60 +0,0 @@
-# Maintainer: Andrea Scarpino <andrea at archlinux.org>
-
-pkgname=hunspell-it
-pkgver=2.4
-_pkgver=2_4
-_date=2007_09_01
-pkgrel=9
-pkgdesc="Italian dictionary for Hunspell"
-arch=('any')
-url="https://sourceforge.net/projects/linguistico/"
-license=('GPL3')
-makedepends=('hunspell' 'qt5-webengine')
-optdepends=('hunspell: the spell checking libraries and apps')
-source=("https://downloads.sourceforge.net/linguistico/italiano_${_pkgver}_${_date}.zip")
-md5sums=('e7fbd9e2dfb25ea3288cdb918e1e1260')
-
-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-15 -t utf-8 $file.ISO-8859 -o $file
- # fix encoding in .aff files
- sed -i "s/ISO8859-15/UTF-8/" $file
- done
-}
-
-package() {
- install -d "${pkgdir}"/usr/share/hunspell
-
- install -D -m644 it_IT.dic "${pkgdir}/usr/share/hunspell/it_IT.dic"
- install -D -m644 it_IT.aff "${pkgdir}/usr/share/hunspell/it_IT.aff"
-
- pushd "${pkgdir}"/usr/share/hunspell/
- it_IT_aliases="it_CH"
- for lang in $it_IT_aliases; do
- ln -s it_IT.aff $lang.aff
- ln -s it_IT.dic $lang.dic
- done
- popd
-
- # the symlinks
- install -d "${pkgdir}"/usr/share/myspell/dicts
- pushd "${pkgdir}"/usr/share/myspell/dicts
- for file in "${pkgdir}"/usr/share/hunspell/*; do
- ln -sv /usr/share/hunspell/$(basename $file) .
- done
- popd
-
-# Install webengine dictionaries
- install -d "$pkgdir"/usr/share/qt/qtwebengine_dictionaries/
- for _file in "$pkgdir"/usr/share/hunspell/*.dic; do
- _filename=$(basename $_file)
- qwebengine_convert_dict $_file "$pkgdir"/usr/share/qt/qtwebengine_dictionaries/${_filename/\.dic/\.bdic}
- done
-}
Copied: hunspell-it/repos/community-any/PKGBUILD (from rev 1026561, hunspell-it/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2021-10-01 19:39:41 UTC (rev 1026562)
@@ -0,0 +1,61 @@
+# Maintainer: Andrea Scarpino <andrea at archlinux.org>
+
+pkgname=hunspell-it
+pkgver=2.4
+_pkgver=2_4
+_date=2007_09_01
+pkgrel=10
+pkgdesc="Italian dictionary for Hunspell"
+arch=('any')
+url="https://sourceforge.net/projects/linguistico/"
+license=('GPL3')
+makedepends=('hunspell' 'qt6-webengine')
+optdepends=('hunspell: the spell checking libraries and apps')
+source=("https://downloads.sourceforge.net/linguistico/italiano_${_pkgver}_${_date}.zip")
+md5sums=('e7fbd9e2dfb25ea3288cdb918e1e1260')
+
+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-15 -t utf-8 $file.ISO-8859 -o $file
+ # fix encoding in .aff files
+ sed -i "s/ISO8859-15/UTF-8/" $file
+ done
+}
+
+package() {
+ install -d "${pkgdir}"/usr/share/hunspell
+
+ install -D -m644 it_IT.dic "${pkgdir}/usr/share/hunspell/it_IT.dic"
+ install -D -m644 it_IT.aff "${pkgdir}/usr/share/hunspell/it_IT.aff"
+
+ pushd "${pkgdir}"/usr/share/hunspell/
+ it_IT_aliases="it_CH"
+ for lang in $it_IT_aliases; do
+ ln -s it_IT.aff $lang.aff
+ ln -s it_IT.dic $lang.dic
+ done
+ popd
+
+ # the symlinks
+ install -d "${pkgdir}"/usr/share/myspell/dicts
+ pushd "${pkgdir}"/usr/share/myspell/dicts
+ for file in "${pkgdir}"/usr/share/hunspell/*; do
+ ln -sv /usr/share/hunspell/$(basename $file) .
+ done
+ popd
+
+# Install webengine dictionaries
+ install -d "$pkgdir"/usr/share/qt{,6}/qtwebengine_dictionaries/
+ for _file in "$pkgdir"/usr/share/hunspell/*.dic; do
+ _filename=$(basename $_file)
+ /usr/lib/qt6/qwebengine_convert_dict $_file "$pkgdir"/usr/share/qt6/qtwebengine_dictionaries/${_filename/\.dic/\.bdic}
+ ln -rs "$pkgdir"/usr/share/qt6/qtwebengine_dictionaries/${_filename/\.dic/\.bdic} "$pkgdir"/usr/share/qt/qtwebengine_dictionaries/
+ done
+}
More information about the arch-commits
mailing list