[arch-commits] Commit in hyphen/trunk (PKGBUILD)

andyrtr at archlinux.org andyrtr at archlinux.org
Thu Dec 30 18:07:33 UTC 2010


    Date: Thursday, December 30, 2010 @ 13:07:33
  Author: andyrtr
Revision: 104194

upgpkg: hyphen 2.7.1-2
make hyphen an optional dependency and add myspell directory symlinks

Modified:
  hyphen/trunk/PKGBUILD

----------+
 PKGBUILD |   12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2010-12-30 17:52:42 UTC (rev 104193)
+++ PKGBUILD	2010-12-30 18:07:33 UTC (rev 104194)
@@ -4,7 +4,7 @@
 pkgbase=hyphen
 pkgname=('hyphen' 'hyphen-en')
 pkgver=2.7.1
-pkgrel=1
+pkgrel=2
 arch=('i686' 'x86_64')
 url="http://hunspell.sf.net"
 license=('GPL' 'LGPL' 'MPL')
@@ -39,7 +39,7 @@
 package_hyphen-en() {
  pkgdesc="English hyphenation rules"
  # arch=('any')
- depends=('hyphen')
+ optdepends=('hyphen: offers hyphenation library functions')
 
   cd "$srcdir/$pkgname-$pkgver"
   make DESTDIR="$pkgdir/" install-hyphDATA
@@ -50,4 +50,12 @@
         ln -s hyph_en_US.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
 }
\ No newline at end of file




More information about the arch-commits mailing list