archrelease: copy trunk to testing-x86_64
[arch-packages.git] / mythes-en / trunk / PKGBUILD
blob3a128c52e4387fb991cbbfdecd67c665efe4536f
1 # Maintainer: AndyRTR <andyrtr@archlinux.org>
3 pkgname=mythes-en
4 pkgver=20060306
5 pkgrel=6
6 pkgdesc="English thesaurus"
7 arch=('any')
8 url="https://wiki.services.openoffice.org/wiki/Dictionaries#English_.28AU.2CCA.2CGB.2CNZ.2CUS.2CZA.29"
9 license=('LGPL')
10 optdepends=('libmythes: offers thesaurus library functions')
11 # Fedora uses http://www.danielnaber.de/wn2ooo/ but it doesn't look more fresh
12 source=("https://www.mirrorservice.org/sites/download.openoffice.org/contrib/dictionaries/thes_en_US_v2.zip")
13 md5sums=('ec611ad21ae4ee2b4415e27e252e4952')
15 package() {
16   cd "$srcdir"
17   install -dm755 "${pkgdir}"/usr/share/mythes
18   cp -p th_en_US_v2.* "$pkgdir"/usr/share/mythes
20   pushd "$pkgdir"/usr/share/mythes/
21   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"
22   for lang in $en_US_aliases; do
23         ln -s th_en_US_v2.idx "th_"$lang"_v2.idx"
24         ln -s th_en_US_v2.dat "th_"$lang"_v2.dat"
25   done
26   popd
28   # the symlinks
29   install -dm755 "${pkgdir}"/usr/share/myspell/dicts
30   pushd "$pkgdir"/usr/share/myspell/dicts
31     for file in "$pkgdir"/usr/share/mythes/*; do
32       ln -sv /usr/share/mythes/$(basename $file) .
33     done
34   popd
35   
36   # docs
37   install -dm755 "${pkgdir}"/usr/share/doc/$pkgname
38   cp -p README_th_en_US_v2.txt "$pkgdir"/usr/share/doc/$pkgname