[arch-commits] Commit in hyphen-fr/repos (staging-any staging-any/PKGBUILD)

Evangelos Foutras foutrelis at archlinux.org
Sat May 16 11:53:02 UTC 2020


    Date: Saturday, May 16, 2020 @ 11:53:01
  Author: foutrelis
Revision: 384372

archrelease: copy trunk to staging-any

Added:
  hyphen-fr/repos/staging-any/
  hyphen-fr/repos/staging-any/PKGBUILD
    (from rev 384371, hyphen-fr/trunk/PKGBUILD)

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

Copied: hyphen-fr/repos/staging-any/PKGBUILD (from rev 384371, hyphen-fr/trunk/PKGBUILD)
===================================================================
--- staging-any/PKGBUILD	                        (rev 0)
+++ staging-any/PKGBUILD	2020-05-16 11:53:01 UTC (rev 384372)
@@ -0,0 +1,39 @@
+# Maintainer: Guillaume ALAUX <guillaume at archlinux.org>
+
+pkgname=hyphen-fr
+pkgver=3.0
+pkgrel=5
+pkgdesc="French hyphenation rules"
+arch=('any')
+url='https://www.gammalecte.net/home.php?prj=fr'
+license=('LGPL')
+optdepends=('hyphen: offers hyphenation library functions')
+source=("https://grammalecte.net/download/fr/hyph-fr-v${pkgver}.zip")
+sha256sums=('c36e530bbd12d7b36b1238feaf4055dcb05fee0e139ed441953557857de4f363')
+
+package() {
+  cd "${srcdir}"
+  install -dm755 ${pkgdir}/usr/share/hyphen
+  install -m644 hyph_fr.dic ${pkgdir}/usr/share/hyphen/hyph_fr_FR.dic
+
+  pushd ${pkgdir}/usr/share/hyphen/
+  fr_FR_aliases="fr_BE fr_CA fr_CH fr_LU"
+  for lang in ${fr_FR_aliases}; do
+        ln -s hyph_fr_FR.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 -dm755 ${pkgdir}/usr/share/doc/${pkgname}
+  install -m644 README_hyph_fr-${pkgver}.txt \
+                ${pkgdir}/usr/share/doc/${pkgname}/README_hyph_fr_FR.txt
+}


More information about the arch-commits mailing list