[arch-commits] Commit in hunspell-de/repos (staging-any staging-any/PKGBUILD)

Felix Yan felixonmars at archlinux.org
Sat May 16 12:05:59 UTC 2020


    Date: Saturday, May 16, 2020 @ 12:05:58
  Author: felixonmars
Revision: 384433

archrelease: copy trunk to staging-any

Added:
  hunspell-de/repos/staging-any/
  hunspell-de/repos/staging-any/PKGBUILD
    (from rev 384432, hunspell-de/trunk/PKGBUILD)

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

Copied: hunspell-de/repos/staging-any/PKGBUILD (from rev 384432, hunspell-de/trunk/PKGBUILD)
===================================================================
--- staging-any/PKGBUILD	                        (rev 0)
+++ staging-any/PKGBUILD	2020-05-16 12:05:58 UTC (rev 384433)
@@ -0,0 +1,59 @@
+# Maintainer: AndyRTR <andyrtr at archlinux.org>
+# Contributor: Alexander Fehr <pizzapunk gmail com>
+
+pkgname=hunspell-de
+pkgver=20161207
+pkgrel=4
+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
+}
+
+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
+}


More information about the arch-commits mailing list