[arch-commits] Commit in (4 files)

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


    Date: Saturday, May 8, 2021 @ 09:41:43
  Author: arojas
Revision: 928762

extra2community: Moving mythes-it from extra to community

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

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

Added: mythes-it/trunk/PKGBUILD
===================================================================
--- mythes-it/trunk/PKGBUILD	                        (rev 0)
+++ mythes-it/trunk/PKGBUILD	2021-05-08 09:41:43 UTC (rev 928762)
@@ -0,0 +1,37 @@
+# Maintainer: Andrea Scarpino <andrea at archlinux.org>
+
+pkgname=mythes-it
+pkgver=2.0.9l
+_pkgver=02_09_l
+_date=2008_11_29
+pkgrel=6
+pkgdesc="Italian thesaurus"
+arch=('any')
+url="https://sourceforge.net/projects/linguistico/"
+license=('GPL3')
+optdepends=('libmythes: offers thesaurus library functions')
+source=("https://downloads.sourceforge.net/linguistico/thesaurus2_it_${_pkgver}_${_date}.zip")
+md5sums=('e3df0f7a03df3b4bf0525f6b6548e129')
+
+package() {
+  install -dm755 "${pkgdir}"/usr/share/mythes
+
+  install -m644 th_it_IT.dat "${pkgdir}/usr/share/mythes/th_it_IT_v2.dat"
+  install -m644 th_it_IT.idx "${pkgdir}/usr/share/mythes/th_it_IT_v2.idx"
+
+  pushd "${pkgdir}"/usr/share/mythes/
+  it_IT_aliases="it_CH"
+    for lang in $it_IT_aliases; do
+      ln -s th_it_IT_v2.idx th_${lang}_v2.idx
+      ln -s th_it_IT_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
+}



More information about the arch-commits mailing list