Date: Monday, October 3, 2022 @ 18:06:20
Author: demize
Revision: 1320790
archrelease: copy trunk to community-any
Added:
hunspell-pl/repos/community-any/PKGBUILD
(from rev 1320789, hunspell-pl/trunk/PKGBUILD)
Deleted:
hunspell-pl/repos/community-any/PKGBUILD
----------+
PKGBUILD | 104 ++++++++++++++++++++++++++++++-------------------------------
1 file changed, 52 insertions(+), 52 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2022-10-03 18:06:12 UTC (rev 1320789)
+++ PKGBUILD 2022-10-03 18:06:20 UTC (rev 1320790)
@@ -1,52 +0,0 @@
-# Maintainer: Johannes Löthberg <[email protected]>
-# Contributor: Bartłomiej Piotrowski <[email protected]>
-# Contributor: Maciej Sitarz <[email protected]>
-
-pkgname=hunspell-pl
-pkgver=20210731
-pkgrel=2
-pkgdesc='Polish dictionary for Hunspell'
-arch=('any')
-url='https://www.sjp.pl/slownik/ort/'
-license=('GPL')
-optdepends=('hunspell: the spell checking libraries and apps')
-makedepends=('qt6-webengine')
-source=(https://sources.archlinux.org/other/community/hunspell-pl/sjp-myspell-pl-$pkgver.zip)
-sha256sums=('40dda0324406ba053e7fcb9ef96fd6658bb48de048d03fef96fb17103a585f44')
-
-prepare() {
- bsdtar -xf pl_PL.zip
-
- # fix file encoding - FS#68481
- # check for broken files using
- # file -i $(pacman -Qql hunspell-pl) | grep iso
- for file in pl_PL.aff pl_PL.dic; do
- mv $file $file.ISO-8859
- iconv -f iso-8859-2 -t utf-8 $file.ISO-8859 -o $file
- # fix encoding in .aff files
- sed -i "s/SET ISO8859-2/SET UTF-8/" $file
- done
-}
-
-package() {
- install -dm755 "$pkgdir"/usr/share/hunspell
- install -m644 pl_PL.aff "$pkgdir"/usr/share/hunspell
- install -m644 pl_PL.dic "$pkgdir"/usr/share/hunspell
-
- # 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
-
- # docs
- install -dm755 "$pkgdir"/usr/share/doc/$pkgname
- install -m644 README_pl_PL.txt "$pkgdir"/usr/share/doc/$pkgname
-
- # Install webengine dictionaries
- install -d "$pkgdir"/usr/share/qt{,6}/qtwebengine_dictionaries/
- /usr/lib/qt6/qwebengine_convert_dict "$pkgdir"/usr/share/hunspell/pl_PL.dic
"$pkgdir"/usr/share/qt6/qtwebengine_dictionaries/pl_PL.bdic
- ln -rs "$pkgdir"/usr/share/qt6/qtwebengine_dictionaries/pl_PL.bdic
"$pkgdir"/usr/share/qt/qtwebengine_dictionaries/
-}
Copied: hunspell-pl/repos/community-any/PKGBUILD (from rev 1320789,
hunspell-pl/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2022-10-03 18:06:20 UTC (rev 1320790)
@@ -0,0 +1,52 @@
+# Maintainer: Johannes Löthberg <[email protected]>
+# Contributor: Bartłomiej Piotrowski <[email protected]>
+# Contributor: Maciej Sitarz <[email protected]>
+
+pkgname=hunspell-pl
+pkgver=20220801
+pkgrel=1
+pkgdesc='Polish dictionary for Hunspell'
+arch=('any')
+url='https://www.sjp.pl/slownik/ort/'
+license=('GPL')
+optdepends=('hunspell: the spell checking libraries and apps')
+makedepends=('qt6-webengine')
+source=(https://sources.archlinux.org/other/community/hunspell-pl/sjp-myspell-pl-$pkgver.zip)
+sha256sums=('cc2874c7bf452255cbcd09d5083dd337f9c34daf2b6079bc97e398132a966424')
+
+prepare() {
+ bsdtar -xf pl_PL.zip
+
+ # fix file encoding - FS#68481
+ # check for broken files using
+ # file -i $(pacman -Qql hunspell-pl) | grep iso
+ for file in pl_PL.aff pl_PL.dic; do
+ mv $file $file.ISO-8859
+ iconv -f iso-8859-2 -t utf-8 $file.ISO-8859 -o $file
+ # fix encoding in .aff files
+ sed -i "s/SET ISO8859-2/SET UTF-8/" $file
+ done
+}
+
+package() {
+ install -dm755 "$pkgdir"/usr/share/hunspell
+ install -m644 pl_PL.aff "$pkgdir"/usr/share/hunspell
+ install -m644 pl_PL.dic "$pkgdir"/usr/share/hunspell
+
+ # 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
+
+ # docs
+ install -dm755 "$pkgdir"/usr/share/doc/$pkgname
+ install -m644 README_pl_PL.txt "$pkgdir"/usr/share/doc/$pkgname
+
+ # Install webengine dictionaries
+ install -d "$pkgdir"/usr/share/qt{,6}/qtwebengine_dictionaries/
+ /usr/lib/qt6/qwebengine_convert_dict "$pkgdir"/usr/share/hunspell/pl_PL.dic
"$pkgdir"/usr/share/qt6/qtwebengine_dictionaries/pl_PL.bdic
+ ln -rs "$pkgdir"/usr/share/qt6/qtwebengine_dictionaries/pl_PL.bdic
"$pkgdir"/usr/share/qt/qtwebengine_dictionaries/
+}