[arch-commits] Commit in hunspell-de/repos/extra-any (PKGBUILD PKGBUILD)
Antonio Rojas
arojas at gemini.archlinux.org
Fri Oct 1 19:04:04 UTC 2021
Date: Friday, October 1, 2021 @ 19:04:03
Author: arojas
Revision: 425006
archrelease: copy trunk to extra-any
Added:
hunspell-de/repos/extra-any/PKGBUILD
(from rev 425005, hunspell-de/trunk/PKGBUILD)
Deleted:
hunspell-de/repos/extra-any/PKGBUILD
----------+
PKGBUILD | 147 ++++++++++++++++++++++++++++++-------------------------------
1 file changed, 74 insertions(+), 73 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2021-10-01 19:03:54 UTC (rev 425005)
+++ PKGBUILD 2021-10-01 19:04:03 UTC (rev 425006)
@@ -1,73 +0,0 @@
-# Maintainer: AndyRTR <andyrtr at archlinux.org>
-# Contributor: Alexander Fehr <pizzapunk gmail com>
-
-pkgname=hunspell-de
-pkgver=20161207
-pkgrel=6
-pkgdesc="German hunspell dictionaries"
-arch=('any')
-url="https://www.j3e.de/ispell/igerman98/"
-license=('GPL')
-makedepends=('hunspell' 'ispell' 'qt5-webengine')
-optdepends=('hunspell: the spell checking libraries and apps')
-source=("https://www.j3e.de/ispell/igerman98/dict/igerman98-$pkgver.tar.bz2")
-sha256sums=('17296f03c5fea62d76ecc530ebe80f6adc430278f58d472dc1842d71612960a8')
-
-build() {
- cd "$srcdir/igerman98-$pkgver"
- make hunspell/de_AT.dic hunspell/de_AT.aff \
- hunspell/de_CH.dic hunspell/de_CH.aff \
- hunspell/de_DE.dic hunspell/de_DE.aff
-
- # fix file encoding - FS#68481
- # check for broken files using
- # file -i $(pacman -Ql hunspell-de | sed "s/hunspell-de//") | grep iso
- pushd hunspell
- for file in de_AT.dic de_AT.aff README_de_AT.txt \
- de_CH.dic de_CH.aff README_de_CH.txt \
- de_DE.dic de_DE.aff README_de_DE.txt; do
- mv $file $file.ISO-8859
- iconv -f iso-8859-1 -t utf-8 $file.ISO-8859 -o $file
- # fix encoding in .aff files
- sed -i "s/ISO8859-1/UTF-8/" $file
- done
- popd
-}
-
-package() {
- cd "$srcdir/igerman98-$pkgver/hunspell"
- install -dm755 "${pkgdir}"/usr/share/hunspell
- cp -p de_??.dic de_??.aff "$pkgdir"/usr/share/hunspell
-
- pushd "$pkgdir"/usr/share/hunspell/
- de_DE_aliases="de_BE de_LU"
- for lang in $de_DE_aliases; do
- ln -s de_DE.aff $lang.aff
- ln -s de_DE.dic $lang.dic
- done
- de_CH_aliases="de_LI"
- for lang in $de_CH_aliases; do
- ln -s de_CH.aff $lang.aff
- ln -s de_CH.dic $lang.dic
- done
- popd
-
- # the symlinks
- install -dm755 "${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
-
- # docs
- install -dm755 ${pkgdir}/usr/share/doc/$pkgname
- cp -p README_de_??.txt "$pkgdir"/usr/share/doc/$pkgname
-}
Copied: hunspell-de/repos/extra-any/PKGBUILD (from rev 425005, hunspell-de/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2021-10-01 19:04:03 UTC (rev 425006)
@@ -0,0 +1,74 @@
+# Maintainer: AndyRTR <andyrtr at archlinux.org>
+# Contributor: Alexander Fehr <pizzapunk gmail com>
+
+pkgname=hunspell-de
+pkgver=20161207
+pkgrel=7
+pkgdesc="German hunspell dictionaries"
+arch=('any')
+url="https://www.j3e.de/ispell/igerman98/"
+license=('GPL')
+makedepends=('hunspell' 'ispell' 'qt6-webengine')
+optdepends=('hunspell: the spell checking libraries and apps')
+source=("https://www.j3e.de/ispell/igerman98/dict/igerman98-$pkgver.tar.bz2")
+sha256sums=('17296f03c5fea62d76ecc530ebe80f6adc430278f58d472dc1842d71612960a8')
+
+build() {
+ cd "$srcdir/igerman98-$pkgver"
+ make hunspell/de_AT.dic hunspell/de_AT.aff \
+ hunspell/de_CH.dic hunspell/de_CH.aff \
+ hunspell/de_DE.dic hunspell/de_DE.aff
+
+ # fix file encoding - FS#68481
+ # check for broken files using
+ # file -i $(pacman -Ql hunspell-de | sed "s/hunspell-de//") | grep iso
+ pushd hunspell
+ for file in de_AT.dic de_AT.aff README_de_AT.txt \
+ de_CH.dic de_CH.aff README_de_CH.txt \
+ de_DE.dic de_DE.aff README_de_DE.txt; do
+ mv $file $file.ISO-8859
+ iconv -f iso-8859-1 -t utf-8 $file.ISO-8859 -o $file
+ # fix encoding in .aff files
+ sed -i "s/ISO8859-1/UTF-8/" $file
+ done
+ popd
+}
+
+package() {
+ cd "$srcdir/igerman98-$pkgver/hunspell"
+ install -dm755 "${pkgdir}"/usr/share/hunspell
+ cp -p de_??.dic de_??.aff "$pkgdir"/usr/share/hunspell
+
+ pushd "$pkgdir"/usr/share/hunspell/
+ de_DE_aliases="de_BE de_LU"
+ for lang in $de_DE_aliases; do
+ ln -s de_DE.aff $lang.aff
+ ln -s de_DE.dic $lang.dic
+ done
+ de_CH_aliases="de_LI"
+ for lang in $de_CH_aliases; do
+ ln -s de_CH.aff $lang.aff
+ ln -s de_CH.dic $lang.dic
+ done
+ popd
+
+ # the symlinks
+ install -dm755 "${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
+
+ # docs
+ install -dm755 ${pkgdir}/usr/share/doc/$pkgname
+ cp -p README_de_??.txt "$pkgdir"/usr/share/doc/$pkgname
+}
More information about the arch-commits
mailing list