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

Antonio Rojas arojas at archlinux.org
Tue Aug 9 18:45:25 UTC 2016


    Date: Tuesday, August 9, 2016 @ 18:45:24
  Author: arojas
Revision: 273544

Update to 2.1.1, merge mythes-es and hyphen-es

Modified:
  hunspell-es/trunk/PKGBUILD

----------+
 PKGBUILD |  105 +++++++++++++++++++++++++++++++++++++++++++++----------------
 1 file changed, 79 insertions(+), 26 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2016-08-09 18:34:57 UTC (rev 273543)
+++ PKGBUILD	2016-08-09 18:45:24 UTC (rev 273544)
@@ -2,8 +2,9 @@
 # Maintainer: Angel Velasquez <angvp at archlinux.org> 
 # Maintainer: AndyRTR <andyrtr at archlinux.org>
 
-pkgname=hunspell-es
-pkgver=2.0
+pkgbase=hunspell-es
+pkgname=(hunspell-es hyphen-es mythes-es)
+pkgver=2.1.1
 pkgrel=1
 epoch=1
 pkgdesc="Spanish hunspell dictionaries"
@@ -10,7 +11,6 @@
 arch=(any)
 url="https://github.com/sbosio/rla-es"
 license=('LGPL3')
-makedepends=('hunspell')
 optdepends=('hunspell:	the spell checking libraries and apps')
 noextract=(es_ANY.oxt es_AR.oxt es_BO.oxt es_CL.oxt es_CO.oxt 
            es_CR.oxt es_CU.oxt es_DO.oxt es_EC.oxt es_ES.oxt 
@@ -37,30 +37,31 @@
         "https://github.com/sbosio/rla-es/releases/download/v$pkgver/es_SV.oxt"
         "https://github.com/sbosio/rla-es/releases/download/v$pkgver/es_UY.oxt"
         "https://github.com/sbosio/rla-es/releases/download/v$pkgver/es_VE.oxt")
-md5sums=('3a7ffc0796bb375ff27bbf3e909c6caf'
-         '42740a3546a1c37d44fd57f40fe8bd3b'
-         'fc15d8f6395e9a3eb165a8bc9dd3aca2'
-         '65b0b76727e8c811b78f03e71ff8fb93'
-         '9babb38c8eb438de9275e4584732062f'
-         '84f149025f487c4debfc3bc3e44b8cb8'
-         'd3cec9c5bacfa775cc4bf1d13bbf5072'
-         'bc8132739e8fa40ba5204776c01a08cd'
-         '2611104aef958ee0b864e1f0a025d935'
-         'd593342c6ccbc55119c784c3cc43f6f9'
-         'ced1b261d6cbc707c7d577d43b7ca513'
-         'd3644dd3b51d5d6c3e2d3ef4bbe173b5'
-         '5075920abe34d9505b4457df2ed68d46'
-         '12f6ad8e855cad40fcbcc15990a0659b'
-         '04c679e772374e89855c7891e9fbbe67'
-         '9674bcb06eadae133b5653f6b0d32627'
-         'ad3266ffd6be53446f422b34b8efba02'
-         '9be037dda99a21211643c63671d91487'
-         '5db0b4b7de421682ce4e75717b605bbf'
-         '46972565466c0f2c7272d348dd4ce190'
-         '69de53e8d6e29cc42247dfe5cbaafaa2')
+md5sums=('05c257b89373d068eb33debccafaba1d'
+         '734c4926d8ada7ea7209636035739fe2'
+         '17812d2473dd4e18e14cbe5a92af3e17'
+         'ad00085f2caffdc762515e6944afa850'
+         '4d4f710dbd147c0aea97331d75b1a35c'
+         '3427143afec8833ab4752220be5d70b1'
+         '8874b4ab59c193b0e81cec9d3b87eda0'
+         'e7ab39bdff1991273c8f8144ab83a7f5'
+         '8a9bc2ca06a66102d66f92c7d6389cdc'
+         'ee9b7f7eb7c8ff9adab90eda3e506923'
+         '5075980a9e5380cfbe41d8c1f1a4bc8e'
+         '0a4515bd8229f119a75f75a66d844bba'
+         'ec2c12efdce4a2366323dffdea0c10bf'
+         'c6008281b5ada374e5edfa29bd2beb36'
+         '570ce39f322d2796db7a0a2e9891a021'
+         'dfe4947d55e4bac1e931d95e24c4ec57'
+         '61e46c42e08741246f04dfd80badf316'
+         'cdc8bde78fb2c4e1bf2cdefcbca0ca92'
+         'd15bceb79dea5a014441b4e71b1976b8'
+         '865eea12715c68226b0b874d57f3b256'
+         '2f0684ec913a8496721410dc34e5d91d')
 
-package() {
-  cd "$srcdir"
+package_hunspell-es() {
+  makedepends=('hunspell')
+
   for file in *.oxt; do
     LANG=en_US.utf8 bsdtar -xf $file
   done
@@ -81,3 +82,55 @@
   install -m644 README.txt "$pkgdir/usr/share/doc/$pkgname"
 }
 
+package_hyphen-es() {
+  pkgdesc="Spanish hyphenation rules"
+  optdepends=('hyphen: offers hyphenation library functions')
+
+  install -Dm644 hyph_es_ANY.dic "$pkgdir/usr/share/hyphen/hyph_es_ANY.dic"
+
+  pushd "$pkgdir/usr/share/hyphen/"
+  es_ES_aliases="es_AR es_BO es_CL es_CO es_CR es_CU es_DO es_EC es_ES es_GT es_HN es_MX es_NI es_PA es_PE es_PR es_SV es_UY es_VE"
+  for lang in $es_ES_aliases; do
+        ln -s hyph_es_ANY.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
+  
+  # docs
+  install -Dm644 README_hyph_es_ANY.txt "${pkgdir}/usr/share/doc/$pkgname/README_hyph_es_ANY.txt"
+}
+
+package_mythes-es() {
+  pkgdesc="Spanish thesaurus"
+  optdepends=('libmythes: offers thesaurus library functions')
+
+  LANG=en_US.utf8 bsdtar -xf es_ANY.oxt
+  install -dm755 "${pkgdir}/usr/share/mythes"
+  install -m644 th_es_ES_v2.* "$pkgdir/usr/share/mythes"
+
+  pushd "$pkgdir/usr/share/mythes/"
+  es_ES_aliases="es_AR es_BO es_CL es_CO es_CR es_CU es_DO es_EC es_GT es_HN es_MX es_NI es_PA es_PE es_PR es_SV es_UY es_VE"
+  for lang in $es_ES_aliases; do
+        ln -s th_es_ES_v2.idx "th_"$lang"_v2.idx"
+        ln -s th_es_ES_v2.dat "th_"$lang"_v2.dat"
+  done
+  popd
+
+  # the symlinks
+  install -dm755 "${pkgdir}/usr/share/myspell/dicts"
+  pushd "$pkgdir/usr/share/myspell/dicts"
+  for file in "$pkgdir"/usr/share/mythes/*; do
+    ln -sv /usr/share/mythes/$(basename $file) .
+  done
+  popd
+  
+  # docs
+  install -Dm644 README_th_es_ES.txt "${pkgdir}/usr/share/doc/$pkgname/README_th_es_ES.txt"
+}



More information about the arch-commits mailing list