[arch-commits] Commit in (4 files)

Andrea Scarpino andrea at archlinux.org
Thu Dec 30 20:56:14 UTC 2010


    Date: Thursday, December 30, 2010 @ 15:56:14
  Author: andrea
Revision: 104213

add hyphen-it package

Added:
  hyphen-it/
  hyphen-it/repos/
  hyphen-it/trunk/
  hyphen-it/trunk/PKGBUILD

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

Added: hyphen-it/trunk/PKGBUILD
===================================================================
--- hyphen-it/trunk/PKGBUILD	                        (rev 0)
+++ hyphen-it/trunk/PKGBUILD	2010-12-30 20:56:14 UTC (rev 104213)
@@ -0,0 +1,36 @@
+# $Id$
+# Maintainer: Andrea Scarpino <andrea at archlinux.org>
+
+pkgname=hyphen-it
+pkgver=20071127
+pkgrel=1
+pkgdesc="Italian hyphenation rules"
+arch=('any')
+url="http://wiki.services.openoffice.org/wiki/Dictionaries"
+license=('LGPL')
+optdepends=('hyphen: offers hyphenation library functions')
+source=(http://ftp.services.openoffice.org/pub/OpenOffice.org/contrib/dictionaries/hyph_it_IT.zip)
+md5sums=('ee57402fa3930e0641d627ec7f4f1619')
+
+build() {
+  cd "${srcdir}"
+
+  install -dm755 ${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 -dm755 ${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