Date: Monday, November 21, 2022 @ 14:38:38
Author: andyrtr
Revision: 462236
archrelease: copy trunk to extra-any
Added:
mythes-en/repos/extra-any/PKGBUILD
(from rev 462235, mythes-en/trunk/PKGBUILD)
Deleted:
mythes-en/repos/extra-any/PKGBUILD
----------+
PKGBUILD | 88 ++++++++++++++++++++++++++++++++-----------------------------
1 file changed, 47 insertions(+), 41 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2022-11-21 14:38:27 UTC (rev 462235)
+++ PKGBUILD 2022-11-21 14:38:38 UTC (rev 462236)
@@ -1,41 +0,0 @@
-# Maintainer: AndyRTR <[email protected]>
-
-pkgname=mythes-en
-# https://cgit.freedesktop.org/libreoffice/dictionaries/log/en
-_commit=81c820ae2e0f447d3bd71855c3bc7e8912740d11 # last commit "en" subdir -
2022-11-02
-pkgver=20221102
-pkgrel=1
-pkgdesc="English thesaurus"
-arch=('any')
-url="https://wiki.documentfoundation.org/Development/Dictionaries"
-license=('LGPL')
-makedepends=('git')
-optdepends=('libmythes: offers thesaurus library functions')
-source=("git+https://anongit.freedesktop.org/git/libreoffice/dictionaries.git#commit=$_commit")
-sha256sums=('SKIP')
-
-package() {
- cd dictionaries/en
- install -dm755 "${pkgdir}"/usr/share/mythes
- cp -p th_en_US_v2.* "$pkgdir"/usr/share/mythes
-
- pushd "$pkgdir"/usr/share/mythes/
- en_US_aliases="en_AG en_AU en_BS en_BW en_BZ en_CA en_DK en_GB en_GH en_IE
en_IN en_JM en_NA en_NG en_NZ en_PH en_SG en_TT en_ZA en_ZW"
- for lang in $en_US_aliases; do
-# ln -s th_en_US_v2.idx "th_"$lang"_v2.idx"
- ln -s th_en_US_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 -dm755 "${pkgdir}"/usr/share/doc/$pkgname
- cp -p README_en_GB_thes.txt "$pkgdir"/usr/share/doc/$pkgname
-}
Copied: mythes-en/repos/extra-any/PKGBUILD (from rev 462235,
mythes-en/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2022-11-21 14:38:38 UTC (rev 462236)
@@ -0,0 +1,47 @@
+# Maintainer: AndyRTR <[email protected]>
+
+pkgname=mythes-en
+# https://cgit.freedesktop.org/libreoffice/dictionaries/log/en
+_commit=81c820ae2e0f447d3bd71855c3bc7e8912740d11 # last commit "en" subdir -
2022-11-02
+pkgver=20221102
+pkgrel=2
+pkgdesc="English thesaurus"
+arch=('any')
+url="https://wiki.documentfoundation.org/Development/Dictionaries"
+license=('LGPL')
+makedepends=('git' 'libmythes')
+optdepends=('libmythes: offers thesaurus library functions')
+source=("git+https://anongit.freedesktop.org/git/libreoffice/dictionaries.git#commit=$_commit")
+sha256sums=('SKIP')
+
+package() {
+ cd dictionaries/en
+#return 1
+ install -dm755 "${pkgdir}"/usr/share/mythes
+ cp -p th_en_US_v2.* "$pkgdir"/usr/share/mythes
+
+ pushd "$pkgdir"/usr/share/mythes/
+ # create sorted index *.idx file from structured thesaurus file
+ for lang in `find -type f -name "*.dat" -printf '%P\n'`; do
+ cat "${lang}" | /usr/bin/th_gen_idx.pl > "${lang/.dat/}".idx
+ done
+
+ en_US_aliases="en_AG en_AU en_BS en_BW en_BZ en_CA en_DK en_GB en_GH en_IE
en_IN en_JM en_NA en_NG en_NZ en_PH en_SG en_TT en_ZA en_ZW"
+ for lang in $en_US_aliases; do
+ ln -s th_en_US_v2.idx th_"$lang"_v2.idx
+ ln -s th_en_US_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 -dm755 "${pkgdir}"/usr/share/doc/$pkgname
+ cp -p README_en_GB_thes.txt "$pkgdir"/usr/share/doc/$pkgname
+}