[arch-commits] Commit in hunspell-pl/repos (2 files)

Johannes Löthberg demize at archlinux.org
Tue May 19 18:17:12 UTC 2020


    Date: Tuesday, May 19, 2020 @ 18:17:12
  Author: demize
Revision: 630016

archrelease: copy trunk to community-testing-any

Added:
  hunspell-pl/repos/community-testing-any/
  hunspell-pl/repos/community-testing-any/PKGBUILD
    (from rev 630015, hunspell-pl/trunk/PKGBUILD)

----------+
 PKGBUILD |   41 +++++++++++++++++++++++++++++++++++++++++
 1 file changed, 41 insertions(+)

Copied: hunspell-pl/repos/community-testing-any/PKGBUILD (from rev 630015, hunspell-pl/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD	                        (rev 0)
+++ community-testing-any/PKGBUILD	2020-05-19 18:17:12 UTC (rev 630016)
@@ -0,0 +1,41 @@
+# Maintainer: Johannes Löthberg <johannes at kyriasis.com>
+# Contributor:  Bartłomiej Piotrowski <barthalion at gmail.com>
+# Contributor: Maciej Sitarz <macieks at freesco.pl>
+
+pkgname=hunspell-pl
+pkgver=20200327
+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=('qt5-webengine')
+source=(https://sources.archlinux.org/other/community/hunspell-pl/sjp-myspell-pl-$pkgver.zip)
+md5sums=('ba4bf1ebd05b7a020f39575c707938da')
+
+prepare() {
+  bsdtar -xf pl_PL.zip
+}
+
+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/qtwebengine_dictionaries/
+  qwebengine_convert_dict "$pkgdir"/usr/share/hunspell/pl_PL.dic "$pkgdir"/usr/share/qt/qtwebengine_dictionaries/pl_PL.bdic
+}



More information about the arch-commits mailing list