[arch-commits] Commit in hyphen-it/repos (community-any community-any/PKGBUILD)

Antonio Rojas arojas at archlinux.org
Sat May 8 09:41:06 UTC 2021


    Date: Saturday, May 8, 2021 @ 09:41:06
  Author: arojas
Revision: 928761

archrelease: copy trunk to community-any

Added:
  hyphen-it/repos/community-any/
  hyphen-it/repos/community-any/PKGBUILD
    (from rev 928760, hyphen-it/trunk/PKGBUILD)

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

Copied: hyphen-it/repos/community-any/PKGBUILD (from rev 928760, hyphen-it/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2021-05-08 09:41:06 UTC (rev 928761)
@@ -0,0 +1,33 @@
+# Maintainer: Andrea Scarpino <andrea at archlinux.org>
+
+pkgname=hyphen-it
+pkgver=20071127
+pkgrel=5
+pkgdesc="Italian hyphenation rules"
+arch=('any')
+url="http://wiki.services.openoffice.org/wiki/Dictionaries"
+license=('LGPL')
+optdepends=('hyphen: offers hyphenation library functions')
+source=("http://openoffice.cs.utah.edu/contrib/dictionaries/hyph_it_IT.zip")
+md5sums=('ee57402fa3930e0641d627ec7f4f1619')
+
+package() {
+  install -d "${pkgdir}"/usr/share/hyphen
+
+  install -m644 hyph_it_IT.dic "${pkgdir}"/usr/share/hyphen/hyph_it_IT.dic
+
+  pushd "${pkgdir}"/usr/share/hyphen/
+  it_IT_aliases="it_CH la_VA"
+  for lang in $it_IT_aliases; do
+    ln -s hyph_it_IT.dic hyph_$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/hyphen/*; do
+      ln -sv /usr/share/hyphen/$(basename $file) .
+    done
+  popd
+}



More information about the arch-commits mailing list